# HG changeset patch # User Pierre-Yves David # Date 2015-10-20 14:01:33 # Node ID 75d550b7d8f5e2dd20caa82737e24788183c0836 # Parent 1760ca4ee919da17e8a643cefa6a81e444494ddd strip: pass source and url to bundle2 processing Restoring from a 'bundle2' was missing this data. diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -192,7 +192,8 @@ def strip(ui, repo, nodelist, backup=Tru 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()