##// END OF EJS Templates
util: canonpath: simplify logic...
util: canonpath: simplify logic if root == os.sep, then endswithsep(root) is True as well: one test is enough

File last commit:

r5951:92eb0a01 default
r9386:eae98607 default
Show More
test-paths
10 lines | 162 B | text/plain | TextLexer
#!/bin/sh
hg init a
hg clone a b
cd a
echo '[paths]' >> .hg/hgrc
echo 'dupe = ../b' >> .hg/hgrc
hg in dupe | fgrep '../'
cd ..
hg -R a in dupe | fgrep '../'
true