/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/backend/commit.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-07-21 18:18:20 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060721181820-450b5e29bb2614d9
2006-07-21  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/olive.glade: some UI refreshment (push, remove and commit dialog)
    * olive/frontend/gtk/push.py: implemented 'push' functionality
    * olive/frontend/gtk/commit.py: implemented 'commit' functionality
    * olive/frontend/gtk/remove.py: implemented 'remove' functionality
    * olive/frontend/gtk/add.py: implemented 'add' functionality
    * olive/frontend/gtk/handler.py: implemented 'init' functionality
    * olive/backend/fileops.py: added recursive mode to add(), added
      NotBranchError exception to add() and remove()

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
           strict=False, local=False):
33
33
    """ Command to commit changes into the branch.
34
34
    
35
 
    :param selected_list: list of files you want to commit (at least the top working directory has to specified)
 
35
    :param selected_list: list of files you want to commit (at least the top working directory has to be specified)
36
36
    
37
37
    :param message: commit message
38
38
    
53
53
        raise NotBranchError
54
54
    
55
55
    if local and not tree.branch.get_bound_location():
56
 
        raise LocalRequiresBoundBranch()
 
56
        raise LocalRequiresBoundBranch
57
57
    if message is None and not file:
58
58
        if message is None:
59
59
            raise NoMessageNoFileError
100
100
    from bzrlib.branch import Branch
101
101
    from bzrlib.transport import get_transport
102
102
        
103
 
    br_from = Branch.open_containing(branch)[0]
 
103
    try:
 
104
        br_from = Branch.open_containing(branch)[0]
 
105
    except errors.NotBranchError:
 
106
        raise NotBranchError(branch)
 
107
    except:
 
108
        raise
 
109
    
104
110
    stored_loc = br_from.get_push_location()
105
111
    if location is None:
106
112
        if stored_loc is None: