[PATCH] bzrk for 0.8 api change
Erik Bågfors
zindar at gmail.com
Thu Feb 2 10:28:55 GMT 2006
Is there no official branch for bzrk that's maintained anymore?
The official branch at http://people.ubuntu.com/~scott/bzr/bzrk/
hasn't been updated in a while.
There is another at http://ddaa.net/bazaar/bzrk that has lot's of new
stuff. Doesn't work after the api change.
I have http://erik.bagfors.nu/bzrk.erik/ that's just the official plus
support for branch nicks. This has been merged into the ddaa-branch
(well, exept the merge from this patch)
I love bzrk and it would be fun to see it maintained :)
/Erik
2006/2/1, John Arbash Meinel <john at arbash-meinel.com>:
> Attached is a patch to bzrk to work after the 'storage' changes. It
> should be compatible with both pre-storage and post-storage bzr branches.
>
> I have a branch available here:
> http://bzr.arbash-meinel.com/plugins/bzrk/
>
> John
> =:->
>
>
> === modified file 'graph.py'
> --- graph.py
> +++ graph.py
> @@ -39,7 +39,8 @@
>
> Returns a tuple of (revids, revisions, colours, children)
> """
> - revisions = { start: branch.get_revision(start) }
> + repo = getattr(branch, 'repository', branch)
> + revisions = { start: repo.get_revision(start) }
> children = { revisions[start]: set() }
> distances = { start: 0 }
> colours = { start: 0 }
> @@ -69,7 +70,7 @@
> except KeyError:
> try:
> parent = revisions[parent_id] \
> - = branch.get_revision(parent_id)
> + = repo.get_revision(parent_id)
> except NoSuchRevision:
> parent = revisions[parent_id] = DummyRevision(parent_id)
>
>
>
>
>
More information about the bazaar
mailing list