Show More
@@ -567,14 +567,16 b' class HgRemote(RemoteBase):' | |||||
567 |
|
567 | |||
568 | def history_iter(): |
|
568 | def history_iter(): | |
569 | limit_rev = fctx.rev() |
|
569 | limit_rev = fctx.rev() | |
570 |
for |
|
570 | for fctx_candidate in reversed(list(fctx.filelog())): | |
571 |
obj = fctx.filectx( |
|
571 | f_obj = fctx.filectx(fctx_candidate) | |
572 | ctx = obj.changectx() |
|
572 | ||
573 | if ctx.hidden() or ctx.obsolete(): |
|
573 | # NOTE: This can be problematic...we can hide ONLY history node resulting in empty history | |
|
574 | _ctx = obj.changectx() | |||
|
575 | if _ctx.hidden() or _ctx.obsolete(): | |||
574 | continue |
|
576 | continue | |
575 |
|
577 | |||
576 | if limit_rev >= obj.rev(): |
|
578 | if limit_rev >= f_obj.rev(): | |
577 | yield obj |
|
579 | yield f_obj | |
578 |
|
580 | |||
579 | history = [] |
|
581 | history = [] | |
580 | for cnt, obj in enumerate(history_iter()): |
|
582 | for cnt, obj in enumerate(history_iter()): | |
@@ -586,7 +588,7 b' class HgRemote(RemoteBase):' | |||||
586 | return _node_history(context_uid, repo_id, revision, path, limit) |
|
588 | return _node_history(context_uid, repo_id, revision, path, limit) | |
587 |
|
589 | |||
588 | @reraise_safe_exceptions |
|
590 | @reraise_safe_exceptions | |
589 |
def node_history_until |
|
591 | def node_history_until(self, wire, revision, path, limit): | |
590 | cache_on, context_uid, repo_id = self._cache_on(wire) |
|
592 | cache_on, context_uid, repo_id = self._cache_on(wire) | |
591 | region = self._region(wire) |
|
593 | region = self._region(wire) | |
592 |
|
594 |
General Comments 0
You need to be logged in to leave comments.
Login now