##// END OF EJS Templates
bookmarks: process pulled remote bookmarks in sorted order
Mads Kiilerich -
r18363:c6e033a7 default
parent child Browse files
Show More
@@ -198,7 +198,7 def updatefromremote(ui, repo, remote, p
198 rb = remote.listkeys('bookmarks')
198 rb = remote.listkeys('bookmarks')
199 changed = False
199 changed = False
200 localmarks = repo._bookmarks
200 localmarks = repo._bookmarks
201 for k in rb.keys():
201 for k in sorted(rb):
202 if k in localmarks:
202 if k in localmarks:
203 nr, nl = rb[k], localmarks[k]
203 nr, nl = rb[k], localmarks[k]
204 if nr in repo:
204 if nr in repo:
@@ -41,8 +41,8 import bookmark by name
41 adding manifests
41 adding manifests
42 adding file changes
42 adding file changes
43 added 1 changesets with 1 changes to 1 files
43 added 1 changesets with 1 changes to 1 files
44 adding remote bookmark X
44 updating bookmark Y
45 updating bookmark Y
45 adding remote bookmark X
46 adding remote bookmark Z
46 adding remote bookmark Z
47 (run 'hg update' to get a working copy)
47 (run 'hg update' to get a working copy)
48 $ hg bookmarks
48 $ hg bookmarks
@@ -145,9 +145,9 divergent bookmarks
145 adding manifests
145 adding manifests
146 adding file changes
146 adding file changes
147 added 1 changesets with 1 changes to 1 files (+1 heads)
147 added 1 changesets with 1 changes to 1 files (+1 heads)
148 divergent bookmark @ stored as @foo
148 divergent bookmark X stored as X@foo
149 divergent bookmark X stored as X@foo
149 updating bookmark Z
150 updating bookmark Z
150 divergent bookmark @ stored as @foo
151 (run 'hg heads' to see heads, 'hg merge' to merge)
151 (run 'hg heads' to see heads, 'hg merge' to merge)
152 $ hg book
152 $ hg book
153 @ 1:9b140be10808
153 @ 1:9b140be10808
@@ -324,10 +324,10 hgweb
324 pulling from http://localhost:$HGPORT/
324 pulling from http://localhost:$HGPORT/
325 no changes found
325 no changes found
326 divergent bookmark @ stored as @1
326 divergent bookmark @ stored as @1
327 divergent bookmark X stored as X@1
328 adding remote bookmark Z
327 adding remote bookmark foo
329 adding remote bookmark foo
328 adding remote bookmark foobar
330 adding remote bookmark foobar
329 divergent bookmark X stored as X@1
330 adding remote bookmark Z
331 importing bookmark Z
331 importing bookmark Z
332 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
332 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
333 requesting all changes
333 requesting all changes
General Comments 0
You need to be logged in to leave comments. Login now