Show More
@@ -12,11 +12,11 b' def difftree(ui, repo, node1=None, node2' | |||||
12 | """diff trees from two commits""" |
|
12 | """diff trees from two commits""" | |
13 | def __difftree(repo, node1, node2, files=[]): |
|
13 | def __difftree(repo, node1, node2, files=[]): | |
14 | assert node2 is not None |
|
14 | assert node2 is not None | |
|
15 | mmap = repo.changectx(node1).manifest() | |||
15 | mmap2 = repo.changectx(node2).manifest() |
|
16 | mmap2 = repo.changectx(node2).manifest() | |
16 | status = repo.status(node1, node2, files=files)[:5] |
|
17 | status = repo.status(node1, node2, files=files)[:5] | |
17 | modified, added, removed, deleted, unknown = status |
|
18 | modified, added, removed, deleted, unknown = status | |
18 |
|
19 | |||
19 | mmap = repo.changectx(node1).manifest() |
|
|||
20 | empty = hg.short(hg.nullid) |
|
20 | empty = hg.short(hg.nullid) | |
21 |
|
21 | |||
22 | for f in modified: |
|
22 | for f in modified: | |
@@ -153,6 +153,7 b' def revtree(args, repo, full="tree", max' | |||||
153 | break |
|
153 | break | |
154 | if full != None: |
|
154 | if full != None: | |
155 | l[x] = repo.changectx(i + x) |
|
155 | l[x] = repo.changectx(i + x) | |
|
156 | l[x].changeset() # force reading | |||
156 | else: |
|
157 | else: | |
157 | l[x] = 1 |
|
158 | l[x] = 1 | |
158 | for x in xrange(chunk-1, -1, -1): |
|
159 | for x in xrange(chunk-1, -1, -1): |
General Comments 0
You need to be logged in to leave comments.
Login now