~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2009-12-25 13:47:23 UTC
  • mto: This revision was merged to the branch mainline in revision 4929.
  • Revision ID: jelmer@samba.org-20091225134723-j1hhom9o72asamhu
Print a proper error when attempting to push to a foreign VCS for which 
roundtripping is not yet supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3075
3075
    def __init__(self, source_branch, target_branch):
3076
3076
        self.source_branch = source_branch
3077
3077
        self.target_branch = target_branch
 
3078
 
 
3079
 
 
3080
class NoRoundtrippingSupport(BzrError):
 
3081
 
 
3082
    _fmt = ("Roundtripping is not supported between %(source_branch)r and "
 
3083
            "%(target_branch)r.")
 
3084
 
 
3085
    internal_error = True
 
3086
 
 
3087
    def __init__(self, source_branch, target_branch):
 
3088
        self.source_branch = source_branch
 
3089
        self.target_branch = target_branch