Bert Huijben wrote: > > Looks like changed5.txt and changed7.txt have the same checksum here. > > (The result of 'echo "" ' put into the file) > > > > That add-s checksum isn't recorded in the database yet during post > > commit, when the delete operation is performed so the delete determines > > that the pristine can safely be removed because nobody is looking at it? > > Ok, just confirmed this. > > See the regression test I added in r980672, based on your script.
Fixed in r980716. svn_wc__db_pristine_remove() now doesn't remove it if the work queue is non-empty. However there's more to do. The code already doesn't remove unused pristines in all the places where it should, and this change fixes that bug but also means even fewer unreferenced ones will be removed. - Julian