##// END OF EJS Templates
narrow: move from ELLIPSIS_NODE_FLAG to revlog.REVIDX_ELLIPSIS...
Augie Fackler -
r36107:9445a314 default
parent child Browse files
Show More
@@ -15,12 +15,12 b' from mercurial import ('
15 15 manifest,
16 16 mdiff,
17 17 node,
18 revlog,
18 19 util,
19 20 )
20 21
21 22 from . import (
22 23 narrowrepo,
23 narrowrevlog,
24 24 )
25 25
26 26 def setup():
@@ -83,11 +83,11 b' def setup():'
83 83 extensions.wrapfunction(
84 84 changegroup.cg1packer, 'generatefiles', generatefiles)
85 85
86 def ellipsisdata(packer, rev, revlog, p1, p2, data, linknode):
87 n = revlog.node(rev)
88 p1n, p2n = revlog.node(p1), revlog.node(p2)
89 flags = revlog.flags(rev)
90 flags |= narrowrevlog.ELLIPSIS_NODE_FLAG
86 def ellipsisdata(packer, rev, revlog_, p1, p2, data, linknode):
87 n = revlog_.node(rev)
88 p1n, p2n = revlog_.node(p1), revlog_.node(p2)
89 flags = revlog_.flags(rev)
90 flags |= revlog.REVIDX_ELLIPSIS
91 91 meta = packer.builddeltaheader(
92 92 n, p1n, p2n, node.nullid, linknode, flags)
93 93 # TODO: try and actually send deltas for ellipsis data blocks
@@ -13,11 +13,6 b' from mercurial import ('
13 13 util,
14 14 )
15 15
16 ELLIPSIS_NODE_FLAG = 1 << 14
17 revlog.REVIDX_KNOWN_FLAGS |= ELLIPSIS_NODE_FLAG
18 if ELLIPSIS_NODE_FLAG not in revlog.REVIDX_FLAGS_ORDER:
19 revlog.REVIDX_FLAGS_ORDER.append(ELLIPSIS_NODE_FLAG)
20
21 16 def readtransform(self, text):
22 17 return text, False
23 18
@@ -27,7 +22,7 b' def writetransform(self, text):'
27 22 def rawtransform(self, text):
28 23 return False
29 24
30 revlog.addflagprocessor(ELLIPSIS_NODE_FLAG,
25 revlog.addflagprocessor(revlog.REVIDX_ELLIPSIS,
31 26 (readtransform, writetransform, rawtransform))
32 27
33 28 def setup():
@@ -8,15 +8,14 b''
8 8 from __future__ import absolute_import
9 9
10 10 from mercurial import (
11 revlog,
11 12 revset,
12 13 templatekw,
13 14 util,
14 15 )
15 16
16 from . import narrowrevlog
17
18 17 def _isellipsis(repo, rev):
19 if repo.changelog.flags(rev) & narrowrevlog.ELLIPSIS_NODE_FLAG:
18 if repo.changelog.flags(rev) & revlog.REVIDX_ELLIPSIS:
20 19 return True
21 20 return False
22 21
General Comments 0
You need to be logged in to leave comments. Login now