# HG changeset patch # User Pierre-Yves David # Date 2014-09-25 22:26:09 # Node ID ce6b9edee725c580f05543a5d0e8ea5af38eaaf9 # Parent 76a43e0db516a83af6e43548e77041ae1055b1d0 exchange: import bookmarks as bookmod Using the original names makes it difficult to use `bookmarks` as a variable name. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -9,7 +9,7 @@ from i18n import _ 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 @@ def _pushdiscoverybookmarks(pushop): 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: