~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2005-08-30 05:30:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050830053042-58932432ee958d1e
- make get_parent() be a method of Branch; add simple tests for it

Show diffs side-by-side

added added

removed removed

Lines of Context:
1262
1262
 
1263
1263
    def run(self, remote=None, verbose=False, quiet=False):
1264
1264
        from bzrlib.errors import BzrCommandError
1265
 
        from bzrlib.missing import get_parent, show_missing
 
1265
        from bzrlib.missing import show_missing
1266
1266
 
1267
1267
        if verbose and quiet:
1268
1268
            raise BzrCommandError('Cannot pass both quiet and verbose')
1269
1269
 
1270
1270
        b = find_branch('.')
1271
 
        parent = get_parent(b)
 
1271
        parent = b.get_parent()
1272
1272
        if remote is None:
1273
1273
            if parent is None:
1274
1274
                raise BzrCommandError("No missing location known or specified.")