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