Revert "remote-hg: update bookmarks when pulling"
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 16 May 2013 12:43:15 +0000 (07:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 May 2013 22:54:18 +0000 (15:54 -0700)
This reverts commit 24317ef32ac3111ed00792f9b2921dc19dd28fe2.

Different versions of Mercurial have different arguments for
bookmarks.updatefromremote(), while it should be possible to call the
right function with the right arguments depending on the version, it's
safer to restore the old behavior for now.

Reported by Rodney Lorrimar.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-hg
index dc276afb1ba9a46036a46db2cfd7bb5381eb0052..beb864b57e25a4297b7355d56c7c586e6f19d7be 100755 (executable)
@@ -363,9 +363,6 @@ 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):