Mercurial > hg
changeset 12016:705425f297a8
contrib/compress: use repo's transaction method
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 22 Aug 2010 18:21:30 +0200 |
parents | 73940fe84cbf |
children | 9182f434ec58 |
files | contrib/compress.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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()