hgext/histedit.py
changeset 32930 af31d531dda0
parent 32881 f65786a02922
child 33039 b82615afde65
--- a/hgext/histedit.py	Thu Jun 15 23:09:14 2017 -0700
+++ b/hgext/histedit.py	Thu Jun 15 22:46:38 2017 -0700
@@ -1199,7 +1199,7 @@
             gen = exchange.readbundle(ui, f, backupfile)
             with repo.transaction('histedit.abort') as tr:
                 if not isinstance(gen, bundle2.unbundle20):
-                    gen.apply(repo, 'histedit', 'bundle:' + backupfile)
+                    gen.apply(repo, tr, 'histedit', 'bundle:' + backupfile)
                 else:
                     bundle2.applybundle(repo, gen, tr,
                                         source='histedit',