comparison hgsubversion/hg_delta_editor.py @ 363:ccef78b91ac9

Move exception classes in hg_delta_editor up top.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 28 May 2009 09:57:00 +0200
parents 705f33c0a323
children b71c8f935740
comparison
equal deleted inserted replaced
362:705f33c0a323 363:ccef78b91ac9
16 from svn import core 16 from svn import core
17 17
18 import svnexternals 18 import svnexternals
19 import util 19 import util
20 import maps 20 import maps
21
22 class MissingPlainTextError(Exception):
23 """Exception raised when the repo lacks a source file required for replaying
24 a txdelta.
25 """
26
27 class ReplayException(Exception):
28 """Exception raised when you try and commit but the replay encountered an
29 exception.
30 """
21 31
22 def pickle_atomic(data, file_path, dir=None): 32 def pickle_atomic(data, file_path, dir=None):
23 """pickle some data to a path atomically. 33 """pickle some data to a path atomically.
24 34
25 This is present because I kept corrupting my revmap by managing to hit ^C 35 This is present because I kept corrupting my revmap by managing to hit ^C
1090 except: #pragma: no cover 1100 except: #pragma: no cover
1091 print len(base), self.current_file 1101 print len(base), self.current_file
1092 self._exception_info = sys.exc_info() 1102 self._exception_info = sys.exc_info()
1093 raise 1103 raise
1094 return txdelt_window 1104 return txdelt_window
1095
1096 class MissingPlainTextError(Exception):
1097 """Exception raised when the repo lacks a source file required for replaying
1098 a txdelta.
1099 """
1100
1101 class ReplayException(Exception):
1102 """Exception raised when you try and commit but the replay encountered an
1103 exception.
1104 """