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

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Fri Sep 2 04:44:47 EDT 2016


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

            Bug ID: 5358
           Summary: mercurial.util.atomictempfile should clean temp file
                    when failed
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: andcycle-bz.mercurial-scm.org at andcycle.idv.tw
                CC: mercurial-devel at selenic.com

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list