mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 22:21:40 +03:00
debugpushkey: list keys sorted
This commit is contained in:
parent
d5ef6b65bb
commit
8cb1e5208b
@ -2156,7 +2156,7 @@ def debugpushkey(ui, repopath, namespace, *keyinfo, **opts):
|
||||
ui.status(str(r) + '\n')
|
||||
return not r
|
||||
else:
|
||||
for k, v in target.listkeys(namespace).iteritems():
|
||||
for k, v in sorted(target.listkeys(namespace).iteritems()):
|
||||
ui.write("%s\t%s\n" % (k.encode('string-escape'),
|
||||
v.encode('string-escape')))
|
||||
|
||||
|
@ -51,12 +51,12 @@ import bookmark by name
|
||||
Z 0:4e3505fd9583
|
||||
$ hg debugpushkey ../a namespaces
|
||||
bookmarks
|
||||
phases
|
||||
namespaces
|
||||
obsolete
|
||||
phases
|
||||
$ hg debugpushkey ../a bookmarks
|
||||
Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
|
||||
X 4e3505fd95835d721066b76e75dbb8cc554d7f77
|
||||
Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
|
||||
Z 4e3505fd95835d721066b76e75dbb8cc554d7f77
|
||||
$ hg pull -B X ../a
|
||||
pulling from ../a
|
||||
@ -292,16 +292,16 @@ hgweb
|
||||
|
||||
$ hg debugpushkey http://localhost:$HGPORT/ namespaces
|
||||
bookmarks
|
||||
phases
|
||||
namespaces
|
||||
obsolete
|
||||
phases
|
||||
$ hg debugpushkey http://localhost:$HGPORT/ bookmarks
|
||||
@ 9b140be1080824d768c5a4691a564088eede71f9
|
||||
X 9b140be1080824d768c5a4691a564088eede71f9
|
||||
Y c922c0139ca03858f655e4a2af4dd02796a63969
|
||||
Z 0d2164f0ce0d8f1d6f94351eba04b794909be66c
|
||||
foo 0000000000000000000000000000000000000000
|
||||
foobar 9b140be1080824d768c5a4691a564088eede71f9
|
||||
Y c922c0139ca03858f655e4a2af4dd02796a63969
|
||||
X 9b140be1080824d768c5a4691a564088eede71f9
|
||||
Z 0d2164f0ce0d8f1d6f94351eba04b794909be66c
|
||||
$ hg out -B http://localhost:$HGPORT/
|
||||
comparing with http://localhost:$HGPORT/
|
||||
searching for changed bookmarks
|
||||
|
@ -165,8 +165,8 @@ test pushkeys and bookmarks
|
||||
$ cd ../local
|
||||
$ hg debugpushkey --config ui.ssh="python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote namespaces
|
||||
bookmarks
|
||||
phases
|
||||
namespaces
|
||||
phases
|
||||
$ hg book foo -r 0
|
||||
$ hg out -B
|
||||
comparing with ssh://user@dummy/remote
|
||||
|
Loading…
Reference in New Issue
Block a user