unbundle: use 'bundle2.applybundle'
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 20 Oct 2015 15:47:20 +0200
changeset 26791 13b861d1cce9
parent 26790 28a6c2d72097
child 26792 a84e0cacb2dd
unbundle: use 'bundle2.applybundle' This is one such place.
mercurial/commands.py
--- a/mercurial/commands.py	Tue Oct 20 15:45:39 2015 +0200
+++ b/mercurial/commands.py	Tue Oct 20 15:47:20 2015 +0200
@@ -6566,7 +6566,7 @@
             if isinstance(gen, bundle2.unbundle20):
                 tr = repo.transaction('unbundle')
                 try:
-                    op = bundle2.processbundle(repo, gen, lambda: tr)
+                    op = bundle2.applybundle(repo, gen, tr)
                     tr.close()
                 except error.BundleUnknownFeatureError as exc:
                     raise error.Abort(_('%s: unknown bundle feature, %s')