##// END OF EJS Templates
changectx: use unfiltered changelog to walk ancestors in annotate...
marmoute -
r44567:c4729703 default
parent child Browse files
Show More
@@ -1161,7 +1161,9 b' class basefilectx(object):'
1161 # use linkrev to find the first changeset where self appeared
1161 # use linkrev to find the first changeset where self appeared
1162 base = self.introfilectx()
1162 base = self.introfilectx()
1163 if getattr(base, '_ancestrycontext', None) is None:
1163 if getattr(base, '_ancestrycontext', None) is None:
1164 cl = self._repo.changelog
1164 # it is safe to use an unfiltered repository here because we are
1165 # walking ancestors only.
1166 cl = self._repo.unfiltered().changelog
1165 if base.rev() is None:
1167 if base.rev() is None:
1166 # wctx is not inclusive, but works because _ancestrycontext
1168 # wctx is not inclusive, but works because _ancestrycontext
1167 # is used to test filelog revisions
1169 # is used to test filelog revisions
@@ -136,13 +136,11 b' using annotate'
136 - file with a single change
136 - file with a single change
137
137
138 $ hg annotate a
138 $ hg annotate a
139 debug.filters: computing revision filter for "visible"
140 0: a
139 0: a
141
140
142 - file with multiple change
141 - file with multiple change
143
142
144 $ hg annotate z
143 $ hg annotate z
145 debug.filters: computing revision filter for "visible"
146 0: some line
144 0: some line
147 1: in a
145 1: in a
148 2: file
146 2: file
General Comments 0
You need to be logged in to leave comments. Login now