##// END OF EJS Templates
contrib/compress: use hg API to compute the destination path
Benoit Boissinot -
r12017:9182f434 default
parent child Browse files
Show More
@@ -7,12 +7,11 b''
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9
9
10 from mercurial import util, changegroup, localrepo
10 from mercurial import hg, changegroup, localrepo
11 import os
12
11
13 def compress(ui, repo, dest):
12 def compress(ui, repo, dest):
14 dest = os.path.realpath(util.expandpath(dest))
13 dest = hg.localpath(ui.expandpath(dest))
15 target = localrepo.instance(ui, dest, create=1)
14 target = localrepo.instance(ui, dest, create=True)
16 tr = target.transaction("compress")
15 tr = target.transaction("compress")
17 src_cl = repo.changelog
16 src_cl = repo.changelog
18 tar_cl = target.changelog
17 tar_cl = target.changelog
General Comments 0
You need to be logged in to leave comments. Login now