Mercurial > hg-stable
changeset 5903:bf20995f1ac3
repair.py: add a docstring to bundle; use repo.ui
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 19 Jan 2008 18:01:16 -0200 |
parents | 98f8dec8f437 |
children | ad5f97e08e1b |
files | mercurial/repair.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Sat Jan 19 18:01:16 2008 -0200 +++ b/mercurial/repair.py Sat Jan 19 18:01:16 2008 -0200 @@ -31,12 +31,13 @@ return h def bundle(repo, bases, heads, node, suffix): + """create a bundle with the specified revisions as a backup""" cg = repo.changegroupsubset(bases, heads, 'strip') backupdir = repo.join("strip-backup") if not os.path.isdir(backupdir): os.mkdir(backupdir) name = os.path.join(backupdir, "%s-%s" % (short(node), suffix)) - ui.warn("saving bundle to %s\n" % name) + repo.ui.warn("saving bundle to %s\n" % name) return changegroup.writebundle(cg, name, "HG10BZ") def collectfilenodes(repo, striprev):