mercurial/repair.py
changeset 21063 7ca4f2049d3b
parent 20979 ad5b61370514
child 21064 4d9d490d7bbe
--- a/mercurial/repair.py	Mon Apr 14 14:46:32 2014 -0400
+++ b/mercurial/repair.py	Mon Apr 14 15:33:50 2014 -0400
@@ -6,7 +6,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from mercurial import changegroup
+from mercurial import changegroup, exchange
 from mercurial.node import short
 from mercurial.i18n import _
 import errno
@@ -147,7 +147,7 @@
         if saveheads or savebases:
             ui.note(_("adding branch\n"))
             f = vfs.open(chgrpfile, "rb")
-            gen = changegroup.readbundle(f, chgrpfile, vfs)
+            gen = exchange.readbundle(f, chgrpfile, vfs)
             if not repo.ui.verbose:
                 # silence internal shuffling chatter
                 repo.ui.pushbuffer()