/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 15:33:52 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-20060718153352-2f5f03d4b618d41a
2006-07-18  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/backend/init.py: added NotBranchError handling to branch()
    * olive/frontend/gtk/__init__.py: added OliveCommunication class
    * olive/frontend/gtk/branch.py: finished implementation of Branch window

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
from errors import (AlreadyBranchError, BranchExistsWithoutWorkingTree,
29
29
                    NonExistingParent, NonExistingRevision,
30
 
                    NonExistingSource, TargetAlreadyExists)
 
30
                    NonExistingSource, NotBranchError, TargetAlreadyExists)
31
31
 
32
32
def init(location):
33
33
    """ Initialize a directory.
75
75
            raise NonExistingSource(from_location)
76
76
        else:
77
77
            raise
 
78
    except errors.NotBranchError:
 
79
        raise NotBranchError(from_location)
78
80
 
79
81
    br_from.lock_read()
80
82