[PATCH] bzrk for 0.8 api change
Erik Bågfors
zindar at gmail.com
Thu Feb 2 10:40:35 GMT 2006
Atually, the following is also needed, or it will die when you click
the "diff" button.
You can find this in my branch at http://erik.bagfors.nu/bzrk.erik/
(but that also includes branch nick support).
/erik
=== modified file 'diffwin.py'
--- diffwin.py
+++ diffwin.py
@@ -109,8 +109,9 @@
Compares the two trees and populates the window with the
differences.
"""
- self.rev_tree = branch.revision_tree(revid)
- self.parent_tree = branch.revision_tree(parentid)
+ repo = getattr(branch, 'repository', branch)
+ self.rev_tree = repo.revision_tree(revid)
+ self.parent_tree = repo.revision_tree(parentid)
self.model.clear()
delta = compare_trees(self.parent_tree, self.rev_tree)
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