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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-07-08 17:36:59 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-20060708173659-8ab442681dadd8ea
2006-07-08  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * backend/errors.py: added some exceptions related to diff() and log()
    * backend/info.py: implemented log()
    * backend/info.py: diff() works well with revnos
    * added e-mail address to copyright header

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 be specified)
 
35
    :param selected_list: list of files you want to commit (at least the top working directory has to 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
 
    try:
104
 
        br_from = Branch.open_containing(branch)[0]
105
 
    except errors.NotBranchError:
106
 
        raise NotBranchError(branch)
107
 
    except:
108
 
        raise
109
 
    
 
103
    br_from = Branch.open_containing(branch)[0]
110
104
    stored_loc = br_from.get_push_location()
111
105
    if location is None:
112
106
        if stored_loc is None: