##// END OF EJS Templates
node-history: small fixes and added a investigation note
super-admin -
r1151:f738f913 default
parent child Browse files
Show More
@@ -567,14 +567,16 b' class HgRemote(RemoteBase):'
567 567
568 568 def history_iter():
569 569 limit_rev = fctx.rev()
570 for obj in reversed(list(fctx.filelog())):
571 obj = fctx.filectx(obj)
572 ctx = obj.changectx()
573 if ctx.hidden() or ctx.obsolete():
570 for fctx_candidate in reversed(list(fctx.filelog())):
571 f_obj = fctx.filectx(fctx_candidate)
572
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 576 continue
575 577
576 if limit_rev >= obj.rev():
577 yield obj
578 if limit_rev >= f_obj.rev():
579 yield f_obj
578 580
579 581 history = []
580 582 for cnt, obj in enumerate(history_iter()):
@@ -586,7 +588,7 b' class HgRemote(RemoteBase):'
586 588 return _node_history(context_uid, repo_id, revision, path, limit)
587 589
588 590 @reraise_safe_exceptions
589 def node_history_untill(self, wire, revision, path, limit):
591 def node_history_until(self, wire, revision, path, limit):
590 592 cache_on, context_uid, repo_id = self._cache_on(wire)
591 593 region = self._region(wire)
592 594
General Comments 0
You need to be logged in to leave comments. Login now