Skip to content

Commit 24317ef

Browse files
felipecgitster
authored andcommitted
remote-hg: update bookmarks when pulling
Otherwise, the user would never ever see new bookmarks, only the ones that (s)he initially cloned. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9ed920a commit 24317ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ def get_repo(url, alias):
363363
die('Repository error')
364364
repo.pull(peer, heads=None, force=True)
365365

366+
rb = peer.listkeys('bookmarks')
367+
bookmarks.updatefromremote(myui, repo, rb, url)
368+
366369
return repo
367370

368371
def rev_to_mark(rev):

0 commit comments

Comments
 (0)