Fastest way to find repository heads?
Gary van der Merwe
garyvdm at gmail.com
Wed Jul 8 22:32:26 BST 2009
On Wed, Jul 8, 2009 at 11:00 PM, Jelmer Vernooij<jelmer at samba.org> wrote:
> heads = repo.get_graph().heads(repo.all_revision_ids())
This will also get dead heads. If you don't need dead heads, you can
find all branches in the repo, and use their tips:
branches = repo.find_branches(using=True)
heads = [branch.last_revision() for branch in branches]
More information about the bazaar
mailing list