From d7835a4581241e02d6c3960185bc867337d68a2b Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 3 Dec 2012 12:01:51 +0100 Subject: The get_ancestry() method was removed from bzr sometime in the past. The actual code was pulled from a similar bug in bzr-stat where get_ancestry() is reimplemented as a two-liner. --- branch_updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/branch_updater.py b/branch_updater.py index fcb13d5..e9a8aa5 100644 --- a/branch_updater.py +++ b/branch_updater.py @@ -165,7 +165,8 @@ class BranchUpdater(object): # apply tags known in this branch my_tags = {} if self.tags: - ancestry = self.repo.get_ancestry(last_rev_id) + graph = self.repo.get_graph() + ancestry = [r for (r, ps) in graph.iter_ancestry([last_rev_id]) if ps is not None] for tag,rev in self.tags.items(): if rev in ancestry: my_tags[tag] = rev -- cgit v1.2.1