/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 olive/menu.py

Merge some fixes from Alexander Belchenko

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
    def commit(self, action):
206
206
        """ Right context menu -> Commit """
207
207
        from commit import CommitDialog
208
 
        wt, path = WorkingTree.open_containing(self.path)
209
 
        commit = CommitDialog(wt, path)
 
208
        branch = None
 
209
        try:
 
210
            wt, path = WorkingTree.open_containing(self.path)
 
211
            branch = wt.branch
 
212
        except NotBranchError, e:
 
213
            path = e.path
 
214
        commit = CommitDialog(wt, path, not branch)
210
215
        commit.display()
211
216
    
212
217
    def diff(self, action):