[issue2067] invalid sha1 in .hgsubstate due to modified file in subrepo

Klaus Koch bugs at mercurial.selenic.com
Mon Mar 1 14:04:08 UTC 2010


New submission from Klaus Koch <kuk42 at gmx.net>:

A modified file in the subrepository causes 'hg update' to write the
subrepository's sha1 with a plus added at the end (just as the output of 'hg
id <subrepo>) and to miss to update the subrepo.  This happens when the
update is done to a revision before or after the working dir parent.

See the attached file for a demonstration.

A workaround is to revert the .hgsubstate file and update *again* to the
working dir parent.

----------
files: test_hgsubstate_corruption
messages: 11901
nosy: kuk
priority: bug
status: unread
title: invalid sha1 in .hgsubstate due to modified file in subrepo
topic: subrepositories

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2067>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_hgsubstate_corruption
Type: application/octet-stream
Size: 1073 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100301/a842be2c/attachment.obj>


More information about the Mercurial-devel mailing list