mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revlog: rename list of nodes from "content" to "nodes"
It seems like the reason for "content" is that the variable contains the nodes that the changegroup "contains", see c2901cddb53f (revlog: make addgroup returns a list of node contained in the added source, 2012-01-13), but "nodes" seems much clearer.
This commit is contained in:
parent
12dbf027df
commit
daced3540c
@ -1854,7 +1854,7 @@ class revlog(object):
|
||||
this revlog and the node that was added.
|
||||
"""
|
||||
|
||||
content = []
|
||||
nodes = []
|
||||
|
||||
r = len(self)
|
||||
end = 0
|
||||
@ -1885,7 +1885,7 @@ class revlog(object):
|
||||
delta = chunkdata['delta']
|
||||
flags = chunkdata['flags'] or REVIDX_DEFAULT_FLAGS
|
||||
|
||||
content.append(node)
|
||||
nodes.append(node)
|
||||
|
||||
link = linkmapper(cs)
|
||||
if node in self.nodemap:
|
||||
@ -1944,7 +1944,7 @@ class revlog(object):
|
||||
dfh.close()
|
||||
ifh.close()
|
||||
|
||||
return content
|
||||
return nodes
|
||||
|
||||
def iscensored(self, rev):
|
||||
"""Check if a file revision is censored."""
|
||||
|
Loading…
Reference in New Issue
Block a user