elif not find_ghosts:
break
else:
-r for (revid, parent_revid) in graph.iter_lhs_ancestry(revision_id):
+ for (revid, parent_revid) in graph.iter_lhs_ancestry(revision_id):
if revid == NULL_REVISION:
continue
parents[revid] = (parent_revid,)
# next revnum in history
revnum -= 1
+ if branch_path == "":
+ return (branch_path, revnum)
+
# Make sure we get the right location for next time, if
# the branch itself was copied
if (paths.has_key(branch_path) and
return (branch_path, revnum)
-
-
-
-
class LogWalker(object):
"""Easy way to access the history of a Subversion repository."""
def __init__(self, transport, cache_db=None, limit=None):
if revnum == 0 and path == "":
return
- self.mutter("follow path %r:%r" % (path, revnum))
+ self.mutter("iter changes %r:%r" % (path, revnum))
recurse = (path != "")
"""
assert mapping is not None
- while revnum >= 0:
+ for (_, paths, revnum) in self._log.iter_changes("", revnum):
yielded_paths = []
- paths = self._log.get_revision_paths(revnum)
for p in paths:
try:
bp = mapping.scheme.unprefix(p)[0]
yielded_paths.append(bp)
except NotBranchError:
pass
- revnum -= 1
def get_lhs_parent(self, revid):
(branch_path, revnum, mapping) = self.lookup_revision_id(revid)