Submitter | Pierre-Yves David |
---|---|
Date | Oct. 20, 2015, 2:36 p.m. |
Message ID | <122054fdc36932f18ae6.1445351784@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/11187/ |
State | Accepted |
Commit | 75d550b7d8f5e2dd20caa82737e24788183c0836 |
Headers | show |
Comments
Patch
diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -190,11 +190,12 @@ def strip(ui, repo, nodelist, backup=Tru if isinstance(gen, bundle2.unbundle20): tr = repo.transaction('strip') tr.hookargs = {'source': 'strip', 'url': 'bundle:' + vfs.join(chgrpfile)} try: - bundle2.processbundle(repo, gen, lambda: tr) + bundle2.applybundle(repo, gen, tr, source='strip', + url='bundle:' + vfs.join(chgrpfile)) tr.close() finally: tr.release() else: gen.apply(repo, 'strip', 'bundle:' + vfs.join(chgrpfile), True)