Show More
@@ -8,7 +8,7 | |||||
8 | # This software may be used and distributed according to the terms |
|
8 | # This software may be used and distributed according to the terms | |
9 | # of the GNU General Public License, incorporated herein by reference. |
|
9 | # of the GNU General Public License, incorporated herein by reference. | |
10 |
|
10 | |||
11 |
import zlib, struct, sha, |
|
11 | import zlib, struct, sha, os, tempfile | |
12 | from mercurial import mdiff |
|
12 | from mercurial import mdiff | |
13 |
|
13 | |||
14 | def compress(text): |
|
14 | def compress(text): | |
@@ -51,7 +51,9 class revlog: | |||||
51 | def node(self, rev): return rev < 0 and nullid or self.index[rev][6] |
|
51 | def node(self, rev): return rev < 0 and nullid or self.index[rev][6] | |
52 | def rev(self, node): return self.nodemap[node] |
|
52 | def rev(self, node): return self.nodemap[node] | |
53 | def linkrev(self, node): return self.index[self.nodemap[node]][3] |
|
53 | def linkrev(self, node): return self.index[self.nodemap[node]][3] | |
54 | def parents(self, node): return self.index[self.nodemap[node]][4:6] |
|
54 | def parents(self, node): | |
|
55 | if node == nullid: return (nullid, nullid) | |||
|
56 | return self.index[self.nodemap[node]][4:6] | |||
55 |
|
57 | |||
56 | def start(self, rev): return self.index[rev][0] |
|
58 | def start(self, rev): return self.index[rev][0] | |
57 | def length(self, rev): return self.index[rev][1] |
|
59 | def length(self, rev): return self.index[rev][1] |
General Comments 0
You need to be logged in to leave comments.
Login now