comparison tests/test-paths.t @ 12662:7285b2824fb7

ui.paths: expand paths directly in fixconfig (issue2373) var and home expansion should be done first.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 09 Oct 2010 12:28:16 -0500
parents 6cc4b14fb76b
children 16d5e80876de
comparison
equal deleted inserted replaced
12660:6ed5ae6264c2 12662:7285b2824fb7
3 updating to branch default 3 updating to branch default
4 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 4 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 $ cd a 5 $ cd a
6 $ echo '[paths]' >> .hg/hgrc 6 $ echo '[paths]' >> .hg/hgrc
7 $ echo 'dupe = ../b' >> .hg/hgrc 7 $ echo 'dupe = ../b' >> .hg/hgrc
8 $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc
8 $ hg in dupe 9 $ hg in dupe
9 comparing with $TESTTMP/b 10 comparing with $TESTTMP/b
10 no changes found 11 no changes found
11 [1] 12 [1]
12 $ cd .. 13 $ cd ..
13 $ hg -R a in dupe 14 $ hg -R a in dupe
14 comparing with $TESTTMP/b 15 comparing with $TESTTMP/b
15 no changes found 16 no changes found
16 [1] 17 [1]
18 $ cd a
19 $ hg paths
20 dupe = $TESTTMP/b
21 expand = $TESTTMP/a/$SOMETHING/bar
22 $ SOMETHING=foo hg paths
23 dupe = $TESTTMP/b
24 expand = $TESTTMP/a/foo/bar
25 $ SOMETHING=/foo hg paths
26 dupe = $TESTTMP/b
27 expand = /foo/bar