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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-09 12:20:51 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-20060809122051-f912e25c7d8755ac
Implemented pull functionality.

2006-08-09  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/backend/update.py: added NotBranchError support to pull()
    * olive/backend/__init__.py: added Branch/Pull signal
    * olive/backend/handler.py: implemented Branch/Pull signal handler

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib.workingtree import WorkingTree
22
22
 
23
 
from errors import NoLocationKnown
 
23
from errors import NoLocationKnown, NotBranchError
24
24
 
25
25
def missing(branch, other_branch=None, reverse=False):
26
26
    """ Get the number of missing or extra revisions of local branch.
108
108
        branch_to = tree_to.branch
109
109
    except errors.NoWorkingTree:
110
110
        tree_to = None
111
 
        branch_to = Branch.open_containing(branch)[0]
 
111
        try:
 
112
            branch_to = Branch.open_containing(branch)[0]
 
113
        except errors.NotBranchError:
 
114
            raise NotBranchError(location)
 
115
    except errors.NotBranchError:
 
116
        raise NotBranchError(location)
112
117
 
113
118
    reader = None
114
119
    if location is not None: