/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 revisionmenu.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-06 18:39:30 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071106183930-ncfbl8rqg81omdna
Made revision menu use a try-finally block when locking the branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
            dialog.hide()
97
97
        
98
98
            if response == gtk.RESPONSE_OK:
99
 
                self.branch.lock_write()
100
 
                self.branch.tags.set_tag(dialog.tagname, dialog._revid)
101
 
                self.branch.unlock()
 
99
                try:
 
100
                    self.branch.lock_write()
 
101
                    self.branch.tags.set_tag(dialog.tagname, dialog._revid)
 
102
                finally:
 
103
                    self.branch.unlock()
102
104
            
103
105
            dialog.destroy()
104
106