# HG changeset patch # User Martin von Zweigbergk # Date 2016-10-31 22:40:30 # Node ID c1345969f6c53922b66002584e954307ff78d46f # Parent 86f4ef63d507f76b6c17ac0979aca1d1fb4d44f1 repair: make strip() return backup file path narrowhg wants to strip some commits and then re-apply them after applying another bundle. Having repair.strip() return the bundle path will be helpful for it. diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -244,6 +244,9 @@ def strip(ui, repo, nodelist, backup=Tru vfs.unlink(tmpbundlefile) repo.destroyed() + # return the backup file path (or None if 'backup' was False) so + # extensions can use it + return backupfile def rebuildfncache(ui, repo): """Rebuilds the fncache file from repo history.