##// END OF EJS Templates
Add a features list to branches.cache to detect caches of old hg versions....
Add a features list to branches.cache to detect caches of old hg versions. The leading space in the written file makes sure that the feature list never can match an existing version, even if the first feature can be read as hex. Additionally old hg versions display the id with --debug, too.

File last commit:

r3607:f4c9bb4a default
r4168:bbfe5a3f default
Show More
test-issue352
21 lines | 281 B | text/plain | TextLexer
#!/bin/bash
# http://www.selenic.com/mercurial/bts/issue352
hg init foo
cd foo
A=`echo -e -n 'he\rllo'`
echo foo > "hell
o"
echo foo > "$A"
hg add
hg ci -A -m m
rm "$A"
ls
hg add
# BUG ? we don't walk on filenames with '\n' (regexp related) ?
hg debugwalk
hg ci -A -m m
exit 0