Show More
@@ -86,7 +86,7 b' def difftree(ui, repo, node1=None, node2' | |||||
86 |
|
86 | |||
87 | change = repo.changelog.read(node1) |
|
87 | change = repo.changelog.read(node1) | |
88 | mmap = repo.manifest.read(change[0]) |
|
88 | mmap = repo.manifest.read(change[0]) | |
89 |
empty = |
|
89 | empty = hg.nullid | |
90 |
|
90 | |||
91 | for f in modified: |
|
91 | for f in modified: | |
92 | # TODO get file permissions |
|
92 | # TODO get file permissions | |
@@ -94,12 +94,12 b' def difftree(ui, repo, node1=None, node2' | |||||
94 | hg.short(mmap2[f]), |
|
94 | hg.short(mmap2[f]), | |
95 | f, f) |
|
95 | f, f) | |
96 | for f in added: |
|
96 | for f in added: | |
97 |
print ":000000 100664 %s %s N\t%s\t%s" % ( |
|
97 | print ":000000 100664 %s %s N\t%s\t%s" % (hg.short(nullid), | |
98 | hg.short(mmap2[f]), |
|
98 | hg.short(mmap2[f]), | |
99 | f, f) |
|
99 | f, f) | |
100 | for f in removed: |
|
100 | for f in removed: | |
101 | print ":100664 000000 %s %s D\t%s\t%s" % (hg.short(mmap[f]), |
|
101 | print ":100664 000000 %s %s D\t%s\t%s" % (hg.short(mmap[f]), | |
102 |
|
|
102 | hg.short(nullid), | |
103 | f, f) |
|
103 | f, f) | |
104 | ## |
|
104 | ## | |
105 |
|
105 |
General Comments 0
You need to be logged in to leave comments.
Login now