Show More
@@ -7,10 +7,10 b'' | |||
|
7 | 7 | # GNU General Public License version 2 or any later version. |
|
8 | 8 | |
|
9 | 9 | |
|
10 |
from mercurial import |
|
|
10 | from mercurial import transaction, util, changegroup, localrepo | |
|
11 | 11 | import sys, os |
|
12 | 12 | |
|
13 |
def compress(ui, repo, dest |
|
|
13 | def compress(ui, repo, dest): | |
|
14 | 14 | dest = os.path.realpath(util.expandpath(dest)) |
|
15 | 15 | target = localrepo.instance(ui, dest, create=1) |
|
16 | 16 | tr = transaction.transaction(sys.stderr.write, |
@@ -21,7 +21,6 b' def compress(ui, repo, dest, **opts):' | |||
|
21 | 21 | mmfs = {} |
|
22 | 22 | collect = changegroup.collector(src_cl, mmfs, changedfiles) |
|
23 | 23 | total = len(repo) |
|
24 | opener = target.sopener | |
|
25 | 24 | |
|
26 | 25 | for r in src_cl: |
|
27 | 26 | p = [src_cl.node(i) for i in src_cl.parentrevs(r)] |
@@ -46,7 +45,7 b' def compress(ui, repo, dest, **opts):' | |||
|
46 | 45 | tf = target.file(f) |
|
47 | 46 | for r in sf: |
|
48 | 47 | p = [sf.node(i) for i in sf.parentrevs(r)] |
|
49 |
|
|
|
48 | tf.addrevision(sf.revision(sf.node(r)), tr, sf.linkrev(r), | |
|
50 | 49 | p[0], p[1]) |
|
51 | 50 | ui.progress(('adding files'), cnt, item=f, unit=('file'), total=total) |
|
52 | 51 |
General Comments 0
You need to be logged in to leave comments.
Login now