repair.py: add a docstring to bundle; use repo.ui
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 19 Jan 2008 18:01:16 -0200
changeset 5903 bf20995f1ac3
parent 5902 98f8dec8f437
child 5904 ad5f97e08e1b
repair.py: add a docstring to bundle; use repo.ui
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):