Show More
@@ -5110,7 +5110,7 b' def paths(ui, repo, search=None):' | |||||
5110 | if search: |
|
5110 | if search: | |
5111 | for name, path in sorted(ui.paths.iteritems()): |
|
5111 | for name, path in sorted(ui.paths.iteritems()): | |
5112 | if name == search: |
|
5112 | if name == search: | |
5113 | ui.status("%s\n" % util.hidepassword(path.loc)) |
|
5113 | ui.status("%s\n" % util.hidepassword(path.rawloc)) | |
5114 | return |
|
5114 | return | |
5115 | if not ui.quiet: |
|
5115 | if not ui.quiet: | |
5116 | ui.warn(_("not found!\n")) |
|
5116 | ui.warn(_("not found!\n")) | |
@@ -5121,7 +5121,7 b' def paths(ui, repo, search=None):' | |||||
5121 | ui.write("%s\n" % name) |
|
5121 | ui.write("%s\n" % name) | |
5122 | else: |
|
5122 | else: | |
5123 | ui.write("%s = %s\n" % (name, |
|
5123 | ui.write("%s = %s\n" % (name, | |
5124 | util.hidepassword(path.loc))) |
|
5124 | util.hidepassword(path.rawloc))) | |
5125 |
|
5125 | |||
5126 | @command('phase', |
|
5126 | @command('phase', | |
5127 | [('p', 'public', False, _('set changeset phase to public')), |
|
5127 | [('p', 'public', False, _('set changeset phase to public')), |
@@ -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