~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge_directive.py

  • Committer: Ian Clatworthy
  • Date: 2008-07-30 04:34:59 UTC
  • mfrom: (3535.8.4 bzr.dev.send)
  • mto: This revision was merged to the branch mainline in revision 3594.
  • Revision ID: ian.clatworthy@canonical.com-20080730043459-fpeor9jlisylif0b
Give a more specific error when target branch unreachable (James Westby)

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
                except errors.RevisionNotPresent:
211
211
                    # At least one dependency isn't present.  Try installing
212
212
                    # missing revisions from the submit branch
213
 
                    submit_branch = _mod_branch.Branch.open(self.target_branch)
 
213
                    try:
 
214
                        submit_branch = \
 
215
                            _mod_branch.Branch.open(self.target_branch)
 
216
                    except errors.NotBranchError:
 
217
                        raise errors.TargetNotBranch(self.target_branch)
214
218
                    missing_revisions = []
215
219
                    bundle_revisions = set(r.revision_id for r in
216
220
                                           info.real_revisions)