Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repair.py @ 26797:75d550b7d8f5
strip: pass source and url to bundle2 processing
Restoring from a 'bundle2' was missing this data.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 20 Oct 2015 16:01:33 +0200 |
parents | b1a0c534d9b4 |
children | 5f2e4eb08e41 |
line wrap: on
line diff
--- a/mercurial/repair.py Tue Oct 20 15:56:22 2015 +0200 +++ b/mercurial/repair.py Tue Oct 20 16:01:33 2015 +0200 @@ -192,7 +192,8 @@ 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()