##// 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 vhash = True
176 vhash = True
177
177
178 if flag not in revlog._flagprocessors:
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 message = _(b"missing processor for flag '%#x'") % flag
183 message = _(b"missing processor for flag '%#x'") % flag
180 raise revlog._flagserrorclass(message)
184 raise revlog._flagserrorclass(message, hint=hint)
181
185
182 processor = revlog._flagprocessors[flag]
186 processor = revlog._flagprocessors[flag]
183 if processor is not None:
187 if processor is not None:
@@ -314,6 +314,7 b' TODO: fail more gracefully.'
314 transaction abort!
314 transaction abort!
315 rollback completed
315 rollback completed
316 abort: missing processor for flag '0x2000'
316 abort: missing processor for flag '0x2000'
317 (the lfs extension must be enabled)
317 [50]
318 [50]
318 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs'
319 $ hg debugrequires -R $TESTTMP/client4_pull/ | grep 'lfs'
319 [1]
320 [1]
General Comments 0
You need to be logged in to leave comments. Login now