# HG changeset patch # User Alexis S. L. Carvalho # Date 1200772876 7200 # Node ID bf20995f1ac356569885d2f7da94865a7ed6ae9b # Parent 98f8dec8f437ed91ab4d81614bf7f2cdf8967f90 repair.py: add a docstring to bundle; use repo.ui diff -r 98f8dec8f437 -r bf20995f1ac3 mercurial/repair.py --- 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):