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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-07-18 22:21:00 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-20060718222100-ede1fdb390598d60
* really finished branch/checkout window
* added olive/frontend/gtk/branch.py (left out from last revision)

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    
124
124
    :param lightweight: perform a lightweight checkout (be aware!)
125
125
    """
126
 
    source = Branch.open(branch_location)
 
126
    try:
 
127
        source = Branch.open(branch_location)
 
128
    except errors.NotBranchError:
 
129
        raise NotBranchError(branch_location)
127
130
    
128
131
    if revision is not None:
129
132
        revision_id = source.get_rev_id(revision)
141
144
            source.bzrdir.create_workingtree()
142
145
            return
143
146
 
 
147
    to_location = to_location + '/' + os.path.basename(branch_location.rstrip("/\\"))
 
148
    
144
149
    try:
145
150
        os.mkdir(to_location)
146
151
    except OSError, e: