abandoned transaction error

Steve (Gadget) Barnes gadgetsteve at hotmail.com
Thu Mar 24 18:46:07 UTC 2016



On 24/03/2016 16:46, Matt Mackall wrote:
> On Wed, 2016-03-23 at 22:21 +0000, Jones, JonathanX wrote:
>> Is the error: "abort: abandoned transaction found! (run 'hg recover' to clean
>> up transaction)"
>>
>> Always in relation to network errors, or could there be another cause?
> 
> It's most commonly due to power failure or similar hard interruption of an hg
> operation. It's triggered by the presence of a .hg/journal or .hg/store/journal
> file.
> 
>> And when we run the "hg recover -R" command on the repo or on the cached repo,
>> it will usually come back with
>>
>> "no interrupted transaction available"
> 
> That.. doesn't make sense. The transaction file either exists or it doesn't.
> 
> -- 
> Mathematics is the supreme nostalgia of our time.
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
> 

I have had similar issues - with svn rather than with hg - due to the
recovery file being created just in case of failure and either
anti-virus or disk caching preventing the prompt removal of the file at
the end of the process. Process checks for a recovery file, (which has
been deleted but the deletion has been delayed), and sees one so says
that there has been a problem but when you check the file it is,
(finally), gone!

You can try to get any anti-virus software set to ignore your
development area(s) - usually a good idea in any case - but some
corporate IT departments are not very co-operative.

-- 
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.



More information about the Mercurial mailing list