[Bug 5391] New: mercurial.util.atomictempfile should clean temp file when failed

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Thu Oct 6 06:02:20 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5391

            Bug ID: 5391
           Summary: mercurial.util.atomictempfile should clean temp file
                    when failed
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: dondyabla at gmail.com
                CC: andcycle-bz.mercurial-scm.org at andcycle.idv.tw,
                    bugzilla at selenic.com,
                    kbullock+mercurial at ringworld.org,
                    mercurial-devel at selenic.com, yuya at tcha.org
        Depends on: 5358

+++ This bug was initially created as a clone of Bug #5358 +++

spot this issue on windows,
because windows have access protection around opened file by default.

here comes the detail,

as I use TortoiseHG,
I used to open Hg Commit and Hg Workbench at the same time,
which create some race condition when access hg repository,

when both window trying to update thgstatus file with atomictempfile,
there is no guarantee the close/rename operation at class atomictempfile will
success,

which create numerous number of .thgstatus-????? file in .hg folder,
stress out the filesystem.


Referenced Bugs:

https://bz.mercurial-scm.org/show_bug.cgi?id=5358
[Bug 5358] mercurial.util.atomictempfile should clean temp file when failed
-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list