##// END OF EJS Templates
revlog: add an exception hint when processing LFS flags without the extension...
Matt Harbison -
r51180:10db46e1 default
parent child Browse files
Show More
@@ -176,8 +176,12 b' def _processflagsfunc(revlog, text, flag'
176 176 vhash = True
177 177
178 178 if flag not in revlog._flagprocessors:
179 hint = None
180 if flag == REVIDX_EXTSTORED:
181 hint = _(b"the lfs extension must be enabled")
182
179 183 message = _(b"missing processor for flag '%#x'") % flag
180 raise revlog._flagserrorclass(message)
184 raise revlog._flagserrorclass(message, hint=hint)
181 185
182 186 processor = revlog._flagprocessors[flag]
183 187 if processor is not None:
@@ -314,6 +314,7 b' TODO: fail more gracefully.'
314 314 transaction abort!
315 315 rollback completed
316 316 abort: missing processor for flag '0x2000'
317 (the lfs extension must be enabled)
317 318 [50]
318 319 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs'
319 320 [1]
General Comments 0
You need to be logged in to leave comments. Login now