/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-04 05:40:01 UTC
  • mfrom: (4925.1.1 no-roundtripping-error)
  • Revision ID: pqm@pqm.ubuntu.com-20100104054001-iwx19b3mp8igu88x
(Jelmer) Add NoRoundTrippingSupport exception,
        and extend 'bzr push' to suggest dpush when it occurs.

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