changeset 22622:ce6b9edee725

exchange: import bookmarks as bookmod Using the original names makes it difficult to use `bookmarks` as a variable name.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 25 Sep 2014 15:26:09 -0700
parents 76a43e0db516
children cd7e17aa6040
files mercurial/exchange.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Thu Sep 25 02:53:49 2014 -0700
+++ b/mercurial/exchange.py	Thu Sep 25 15:26:09 2014 -0700
@@ -9,7 +9,7 @@
 from node import hex, nullid
 import errno, urllib
 import util, scmutil, changegroup, base85, error
-import discovery, phases, obsolete, bookmarks, bundle2, pushkey
+import discovery, phases, obsolete, bookmarks as bookmod, bundle2, pushkey
 
 def readbundle(ui, fh, fname, vfs=None):
     header = changegroup.readexactly(fh, 4)
@@ -315,7 +315,7 @@
         ancestors = repo.changelog.ancestors(revnums, inclusive=True)
     remotebookmark = remote.listkeys('bookmarks')
 
-    comp = bookmarks.compare(repo, repo._bookmarks, remotebookmark, srchex=hex)
+    comp = bookmod.compare(repo, repo._bookmarks, remotebookmark, srchex=hex)
     addsrc, adddst, advsrc, advdst, diverge, differ, invalid = comp
     for b, scid, dcid in advsrc:
         if not ancestors or repo[scid].rev() in ancestors: