Skip to content

Commit

Permalink
remote-hg: update bookmarks when pulling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 15, 2013
1 parent 9ed920a commit 24317ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ def get_repo(url, alias):
die('Repository error')
repo.pull(peer, heads=None, force=True)

rb = peer.listkeys('bookmarks')
bookmarks.updatefromremote(myui, repo, rb, url)

return repo

def rev_to_mark(rev):
Expand Down

0 comments on commit 24317ef

Please sign in to comment.