comparison tests/test-share.t @ 15101:a21ccf4412d5

share: allow trailing newline on .hg/sharedpath. This is extremely handy for those occasional circumstances where you need to edit .hg/sharedpath manually, since modern Unix text editors make it surprisingly difficult to create a text file with no trailing newline.
author Greg Ward <greg@gerg.ca>
date Wed, 14 Sep 2011 22:28:27 -0400
parents 574dc5d74f9b
children c5c9ca3719f9
comparison
equal deleted inserted replaced
15100:a051f8a6a7cc 15101:a21ccf4412d5
25 25
26 Some sed versions appends newline, some don't, and some just fails 26 Some sed versions appends newline, some don't, and some just fails
27 27
28 $ cat .hg/sharedpath; echo 28 $ cat .hg/sharedpath; echo
29 $TESTTMP/repo1/.hg 29 $TESTTMP/repo1/.hg
30
31 trailing newline on .hg/sharedpath is ok
32 $ hg tip -q
33 0:d3873e73d99e
34 $ echo '' >> .hg/sharedpath
35 $ cat .hg/sharedpath
36 $TESTTMP/repo1/.hg
37 $ hg tip -q
38 0:d3873e73d99e
30 39
31 commit in shared clone 40 commit in shared clone
32 41
33 $ echo a >> a 42 $ echo a >> a
34 $ hg commit -m'change in shared clone' 43 $ hg commit -m'change in shared clone'