/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 viz/branchwin.py

  • Committer: Daniel Schierbeck
  • Date: 2008-01-23 16:30:21 UTC
  • mto: (423.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080123163021-3sxxhc52qx14pu2m
Simplified Go->Tag Revision menu item in the viz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
    def _tag_revision_cb(self, w):
378
378
        try:
379
379
            self.treeview.set_sensitive(False)
380
 
            self.branch.unlock()
381
380
            dialog = AddTagDialog(self.branch.repository, self.treeview.get_revision().revision_id, self.branch)
382
381
            response = dialog.run()
383
382
            if response != gtk.RESPONSE_NONE:
384
383
                dialog.hide()
385
384
            
386
385
                if response == gtk.RESPONSE_OK:
387
 
                    try:
388
 
                        self.branch.lock_write()
389
 
                        self.treeview.add_tag(dialog.tagname, dialog._revid)
390
 
                    finally:
391
 
                        self.branch.unlock()
 
386
                    self.treeview.add_tag(dialog.tagname, dialog._revid)
392
387
                
393
388
                dialog.destroy()
394
389
 
395
390
        finally:
396
 
            self.branch.lock_read()
397
 
            self.treeview.emit("revision-selected")
398
391
            self.treeview.set_sensitive(True)
399
392
 
400
393
    def _col_visibility_changed(self, col, property):