/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

  • Committer: Alexander Belchenko
  • Date: 2006-11-15 12:59:29 UTC
  • mto: (66.2.10 trunk)
  • mto: This revision was merged to the branch mainline in revision 118.
  • Revision ID: bialix@ukr.net-20061115125929-cd014d28f3e64293
Fix for commit command in olive context menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
    def commit(self, action):
195
195
        """ Right context menu -> Commit """
196
196
        from commit import CommitDialog
197
 
        wt, path = WorkingTree.open_containing(self.path)
198
 
        commit = CommitDialog(wt, path)
 
197
        branch = None
 
198
        try:
 
199
            wt, path = WorkingTree.open_containing(self.path)
 
200
            branch = wt.branch
 
201
        except NotBranchError, e:
 
202
            path = e.path
 
203
        commit = CommitDialog(wt, path, not branch)
199
204
        commit.display()
200
205
    
201
206
    def diff(self, action):