diff --git a/vcsserver/remote/hg_remote.py b/vcsserver/remote/hg_remote.py --- a/vcsserver/remote/hg_remote.py +++ b/vcsserver/remote/hg_remote.py @@ -566,11 +566,12 @@ class HgRemote(RemoteBase): def history_iter(): limit_rev = fctx.rev() + for fctx_candidate in reversed(list(fctx.filelog())): f_obj = fctx.filectx(fctx_candidate) # NOTE: This can be problematic...we can hide ONLY history node resulting in empty history - _ctx = obj.changectx() + _ctx = f_obj.changectx() if _ctx.hidden() or _ctx.obsolete(): continue