##// END OF EJS Templates
filelog: add a comment explaining a fast path in filerevisioncopied()...
Simon Sapin -
r49377:5026a0d3 default
parent child Browse files
Show More
@@ -112,6 +112,13 b' def filerevisioncopied(store, node):'
112 2-tuple of the source filename and node.
112 2-tuple of the source filename and node.
113 """
113 """
114 if store.parents(node)[0] != sha1nodeconstants.nullid:
114 if store.parents(node)[0] != sha1nodeconstants.nullid:
115 # When creating a copy or move we set filelog parents to null,
116 # because contents are probably unrelated and making a delta
117 # would not be useful.
118 # Conversely, if filelog p1 is non-null we know
119 # there is no copy metadata.
120 # In the presence of merges, this reasoning becomes invalid
121 # if we reorder parents. See tests/test-issue6528.t.
115 return False
122 return False
116
123
117 meta = parsemeta(store.revision(node))[0]
124 meta = parsemeta(store.revision(node))[0]
General Comments 0
You need to be logged in to leave comments. Login now