contrib/compress: use repo's transaction method
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 22 Aug 2010 18:21:30 +0200
changeset 12016 705425f297a8
parent 12015 73940fe84cbf
child 12017 9182f434ec58
contrib/compress: use repo's transaction method
contrib/compress.py
--- a/contrib/compress.py	Sun Aug 22 18:18:36 2010 +0200
+++ b/contrib/compress.py	Sun Aug 22 18:21:30 2010 +0200
@@ -7,14 +7,13 @@
 # GNU General Public License version 2 or any later version.
 
 
-from mercurial import transaction, util, changegroup, localrepo
-import sys, os
+from mercurial import util, changegroup, localrepo
+import os
 
 def compress(ui, repo, dest):
     dest = os.path.realpath(util.expandpath(dest))
     target = localrepo.instance(ui, dest, create=1)
-    tr = transaction.transaction(sys.stderr.write,
-                                 util.opener('.', False), "compress")
+    tr = target.transaction("compress")
     src_cl = repo.changelog
     tar_cl = target.changelog
     changedfiles = set()