Mercurial > hg
comparison hgext/extdiff.py @ 23063:cd86a6707159 stable
transactions: fix hg recover with fncache backups
The transaction backupfiles logic was broken for 'hg recover'. The file format
is XXX\0XXX\0YYY\0YYY\0 but the parser did a couple things wrong. 1) It went one
step beyond the final \0 and tried to read past the end of the array. 2)
array[i:i+1] returns a single item, instead of two items as intended.
Added a test to catch it, which turns out to be the first actual 'hg recover'
test.
author | Durham Goode <durham@fb.com> |
---|---|
date | Mon, 20 Oct 2014 16:53:56 -0700 |
parents | 684bad8c4265 |
children | 72a89cf86fcd dc80a0ad7bf5 |
comparison
equal
deleted
inserted
replaced
23062:ba89f7b542c9 | 23063:cd86a6707159 |
---|