[issue1646] Repository corrupted after interrupted commit

Florian Moesch mercurial-bugs at selenic.com
Mon May 4 03:19:13 CDT 2009


New submission from Florian Moesch <florian.moesch at draeger.com>:

Testing Mercurial under Windows revealed some odd behavior which
might be a defect. At the end the repository can't fixed after an
interrupted (by killing the process) commit since the recover operations
fails with the message: "abort: The system cannot find the file
specified: C:\MERCUR~1\BUGSCE~1\.hg\store\data/file1.txt.i".

This behavior can be reproduced with the following command sequence:

C:\MERCUR~1>hg init bugscenario
C:\MERCUR~1>cd bugscenario
C:\MERCUR~1\bugscenario>edit file1.txt
C:\MERCUR~1\BUGSCE~1>hg add file1.txt
C:\MERCUR~1\BUGSCE~1>hg commit
[kill the hg process before entering the commit message]
C:\MERCUR~1\BUGSCE~1>hg rollback
no rollback information available
C:\MERCUR~1\BUGSCE~1>hg status
A file1.txt
C:\MERCUR~1\BUGSCE~1>hg revert file1.txt
C:\MERCUR~1\BUGSCE~1>hg status
? file1.txt
C:\MERCUR~1\BUGSCE~1>hg add file1.txt
C:\MERCUR~1\BUGSCE~1>hg commit
abort: journal already exists - run hg recover!
C:\MERCUR~1\BUGSCE~1>hg recover
rolling back interrupted transaction
abort: The process cannot access the file because it is being used by
another process: C:\MERCUR~1\BUGSCE~1\.hg\store\journal
C:\MERCUR~1\BUGSCE~1>hg recover
rolling back interrupted transaction
abort: The system cannot find the file specified:
C:\MERCUR~1\BUGSCE~1\.hg\store\data/file1.txt.i

System: 
Mercurial Distributed SCM (version 1.2.1)
Windows XP Professional, Version 2002, Service Pack 2

----------
messages: 9247
nosy: moesch
priority: bug
status: unread
title: Repository corrupted after interrupted commit

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1646>
____________________________________________________



More information about the Mercurial-devel mailing list