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

  • Committer: Jelmer Vernooij
  • Date: 2009-03-14 22:11:34 UTC
  • mto: (0.200.259 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090314221134-cjtumbw9cejzt18g
Add basic tests for local fetch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    
43
43
    def __init__(self, ref):
44
44
        self.ref = ref
 
45
 
 
46
class LightWeightCheckoutsNotSupported(BzrGitError):
 
47
    _fmt = "bzr-git does not support creating lightweight checkouts at the moment."
 
48
 
 
49
 
 
50
def convert_dulwich_error(error):
 
51
    """Convert a Dulwich error to a Bazaar error."""
 
52
 
 
53
    if isinstance(error, git_errors.HangupException):
 
54
        raise bzr_errors.ConnectionReset(error.msg, "")
 
55
    raise error