From 2e348cd12a526c4990913048bfcdae9126a34c25 Mon Sep 17 00:00:00 2001 From: mhagger Date: Mon, 23 May 2011 04:01:26 +0000 Subject: [PATCH] Move some exception definitions to where they are used. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5348 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/dvcs_common.py | 12 ++++++++++++ cvs2svn_lib/git_output_option.py | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cvs2svn_lib/dvcs_common.py b/cvs2svn_lib/dvcs_common.py index d37c896c..5c8e1b65 100644 --- a/cvs2svn_lib/dvcs_common.py +++ b/cvs2svn_lib/dvcs_common.py @@ -295,6 +295,18 @@ class DVCSOutputOption(OutputOption): yield sub_cvs_path +class ExpectedDirectoryError(Exception): + """A file was found where a directory was expected.""" + + pass + + +class ExpectedFileError(Exception): + """A directory was found where a file was expected.""" + + pass + + class MirrorUpdater(object): def register_artifacts(self, which_pass): pass diff --git a/cvs2svn_lib/git_output_option.py b/cvs2svn_lib/git_output_option.py index 01184323..d7afa4b8 100644 --- a/cvs2svn_lib/git_output_option.py +++ b/cvs2svn_lib/git_output_option.py @@ -37,18 +37,6 @@ from cvs2svn_lib.dvcs_common import MirrorUpdater from cvs2svn_lib.key_generator import KeyGenerator -class ExpectedDirectoryError(Exception): - """A file was found where a directory was expected.""" - - pass - - -class ExpectedFileError(Exception): - """A directory was found where a file was expected.""" - - pass - - class GitRevisionWriter(MirrorUpdater): def start(self, mirror, f): -- 2.11.4.GIT