Mercurial > hg-stable
changeset 16388:e03d8a40521f
repair: allow giving strip backup a different name
So the user can differentiate amend backups from the rest.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 06 Apr 2012 16:18:33 +0300 |
parents | c481761033bd |
children | 79fecd735d26 |
files | mercurial/repair.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Tue Apr 10 12:07:18 2012 -0500 +++ b/mercurial/repair.py Fri Apr 06 16:18:33 2012 +0300 @@ -54,7 +54,7 @@ return s -def strip(ui, repo, nodelist, backup="all"): +def strip(ui, repo, nodelist, backup="all", topic='backup'): cl = repo.changelog # TODO handle undo of merge sets if isinstance(nodelist, str): @@ -105,7 +105,7 @@ # create a changegroup for all the branches we need to keep backupfile = None if backup == "all": - backupfile = _bundle(repo, stripbases, cl.heads(), node, 'backup') + backupfile = _bundle(repo, stripbases, cl.heads(), node, topic) repo.ui.status(_("saved backup bundle to %s\n") % backupfile) if saveheads or savebases: # do not compress partial bundle if we remove it from disk later