/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-31 01:09:01 UTC
  • mto: (580.2.1 gtk.gloom)
  • mto: This revision was merged to the branch mainline in revision 581.
  • Revision ID: jelmer@samba.org-20080731010901-2wbyaorsf4wbukrx
Show diffs of threads, allow switching to different threads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
    takes_args = [ "location?" ]
186
186
 
187
187
    def run(self, location="."):
188
 
        (br, path) = branch.Branch.open_containing(location)
 
188
        try:
 
189
            (tree, path) = workingtree.WorkingTree.open_containing(location)
 
190
            br = tree.branch
 
191
        except NoWorkingTree, e:
 
192
            (br, path) = branch.Branch.open_containing(location)
 
193
            tree = None
189
194
        open_display()
190
195
        from bzrlib.plugins.gtk.loom import LoomDialog
191
 
        dialog = LoomDialog(br)
 
196
        dialog = LoomDialog(br, tree)
192
197
        dialog.run()
193
198
 
194
199