From 9579760ee3321f54bb92ede8a32ca6e065266fc4 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 22 Jan 2012 14:48:13 -0600 Subject: [PATCH] Remove hgsvn-centric exception classes --- svn2svn/errors.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/svn2svn/errors.py b/svn2svn/errors.py index b661f2c..8533685 100644 --- a/svn2svn/errors.py +++ b/svn2svn/errors.py @@ -1,17 +1,13 @@ - """ Exception sub-hierarchy: RuntimeError +-- ExternalCommandFailed - +-- CommitCancelled - +-- HgSVNError + +-- SVNError +-- UnsupportedSVNFeature - | +-- OverwrittenSVNBranch | +-- UnsupportedSVNAction +-- SVNOutputError +-- EmptySVNLog - """ class ExternalCommandFailed(RuntimeError): @@ -19,27 +15,22 @@ class ExternalCommandFailed(RuntimeError): An external command failed. """ -class HgSVNError(RuntimeError): +class SVNError(RuntimeError): """ - A generic hgsvn error. + A generic svn error. """ -class UnsupportedSVNFeature(HgSVNError): +class UnsupportedSVNFeature(SVNError): """ An unsuppported SVN (mis)feature. """ -class OverwrittenSVNBranch(UnsupportedSVNFeature): - """ - The current SVN branch was overwritten with another one. - """ - class UnsupportedSVNAction(UnsupportedSVNFeature): """ An unknown/unsupported SVN action in an SVN log entry. """ -class SVNOutputError(HgSVNError): +class SVNOutputError(SVNError): """ A generic error with the output of an SVN command. """ -- 2.45.2