##// END OF EJS Templates
Make {file_copies} usable as a --template key...
Make {file_copies} usable as a --template key Before this, to display file copies in templates, you had to write something like {file_copies%filecopy}. For some reason, the {file_copy} subtemplate was used by default but not defined by default in changeset_templater, while styles were already using it. Here we define {file_copy} in changeset_templater, and change the templater to handle formatting strings like {file_copies%filecopy} with already expanded keys (in this case {file_copies}), for backward compatibility.

File last commit:

r9990:c1d940d3 default
r10061:9e2ab107 default
Show More
test-share
42 lines | 761 B | text/plain | TextLexer
#!/bin/sh
echo "[extensions]" >> $HGRCPATH
echo "share = " >> $HGRCPATH
echo % prepare repo1
hg init repo1
cd repo1
echo a > a
hg commit -A -m'init'
echo % share it
cd ..
hg share repo1 repo2
echo % contents of repo2/.hg
cd repo2
[ -d .hg/store ] \
&& echo "fail: .hg/store should not exist" \
|| echo "pass: .hg/store does not exist"
cat .hg/sharedpath | sed "s:$HGTMP:*HGTMP*:"; echo
echo % commit in shared clone
echo a >> a
hg commit -m'change in shared clone'
echo % check original
cd ../repo1
hg log
hg update
cat a # should be two lines of "a"
echo % commit in original
echo b > b
hg commit -A -m'another file'
echo % check in shared clone
cd ../repo2
hg log
hg update
cat b # should exist with one "b"