mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-12 06:05:39 +01:00
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 <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@@ -363,6 +363,9 @@ def get_repo(url, alias):
|
|||||||
die('Repository error')
|
die('Repository error')
|
||||||
repo.pull(peer, heads=None, force=True)
|
repo.pull(peer, heads=None, force=True)
|
||||||
|
|
||||||
|
rb = peer.listkeys('bookmarks')
|
||||||
|
bookmarks.updatefromremote(myui, repo, rb, url)
|
||||||
|
|
||||||
return repo
|
return repo
|
||||||
|
|
||||||
def rev_to_mark(rev):
|
def rev_to_mark(rev):
|
||||||
|
|||||||
Reference in New Issue
Block a user