##// END OF EJS Templates
merge with stable
Matt Mackall -
r27329:944af8e2 merge default
parent child Browse files
Show More
@@ -5360,7 +5360,7 b' def paths(ui, repo, search=None):'
5360 if search:
5360 if search:
5361 for name, path in sorted(ui.paths.iteritems()):
5361 for name, path in sorted(ui.paths.iteritems()):
5362 if name == search:
5362 if name == search:
5363 ui.status("%s\n" % util.hidepassword(path.loc))
5363 ui.status("%s\n" % util.hidepassword(path.rawloc))
5364 return
5364 return
5365 if not ui.quiet:
5365 if not ui.quiet:
5366 ui.warn(_("not found!\n"))
5366 ui.warn(_("not found!\n"))
@@ -5371,7 +5371,7 b' def paths(ui, repo, search=None):'
5371 ui.write("%s\n" % name)
5371 ui.write("%s\n" % name)
5372 else:
5372 else:
5373 ui.write("%s = %s\n" % (name,
5373 ui.write("%s = %s\n" % (name,
5374 util.hidepassword(path.loc)))
5374 util.hidepassword(path.rawloc)))
5375 for subopt, value in sorted(path.suboptions.items()):
5375 for subopt, value in sorted(path.suboptions.items()):
5376 ui.write('%s:%s = %s\n' % (name, subopt, value))
5376 ui.write('%s:%s = %s\n' % (name, subopt, value))
5377
5377
@@ -4,7 +4,7 b''
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#tip' >> .hg/hgrc
8 $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc
8 $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc
9 $ hg in dupe
9 $ hg in dupe
10 comparing with $TESTTMP/b (glob)
10 comparing with $TESTTMP/b (glob)
@@ -17,25 +17,25 b''
17 [1]
17 [1]
18 $ cd a
18 $ cd a
19 $ hg paths
19 $ hg paths
20 dupe = $TESTTMP/b (glob)
20 dupe = $TESTTMP/b#tip (glob)
21 expand = $TESTTMP/a/$SOMETHING/bar (glob)
21 expand = $TESTTMP/a/$SOMETHING/bar (glob)
22 $ SOMETHING=foo hg paths
22 $ SOMETHING=foo hg paths
23 dupe = $TESTTMP/b (glob)
23 dupe = $TESTTMP/b#tip (glob)
24 expand = $TESTTMP/a/foo/bar (glob)
24 expand = $TESTTMP/a/foo/bar (glob)
25 #if msys
25 #if msys
26 $ SOMETHING=//foo hg paths
26 $ SOMETHING=//foo hg paths
27 dupe = $TESTTMP/b (glob)
27 dupe = $TESTTMP/b#tip (glob)
28 expand = /foo/bar
28 expand = /foo/bar
29 #else
29 #else
30 $ SOMETHING=/foo hg paths
30 $ SOMETHING=/foo hg paths
31 dupe = $TESTTMP/b (glob)
31 dupe = $TESTTMP/b#tip (glob)
32 expand = /foo/bar
32 expand = /foo/bar
33 #endif
33 #endif
34 $ hg paths -q
34 $ hg paths -q
35 dupe
35 dupe
36 expand
36 expand
37 $ hg paths dupe
37 $ hg paths dupe
38 $TESTTMP/b (glob)
38 $TESTTMP/b#tip (glob)
39 $ hg paths -q dupe
39 $ hg paths -q dupe
40 $ hg paths unknown
40 $ hg paths unknown
41 not found!
41 not found!
General Comments 0
You need to be logged in to leave comments. Login now