[issue2591] Place temp files in recognisable location
Steve Streeting
bugs at mercurial.selenic.com
Wed Jan 12 11:10:41 UTC 2011
New submission from Steve Streeting <steve at torusknot.com>:
Mercurial uses temp files in the root of the repository on occasion (e.g.
diff). The problem with this is that if a program is watching the root
folder for changes- e.g. a Mercurial client which auto-refreshes - these
temporary files trigger unnecessary change events, and because they're not
predictable in file pattern, you can't easily ignore them. Also kernel file
events in Mac OS X are only at the level of the folder, so even if you knew
the name, it wouldn't help.
I've modified hg (see attached) to place these temp files in a recognisable
folder so I can easily ignore them. It's a small change but it makes a
massive difference when it comes to avoiding false-positives when watching
for changes in the file system. It would be really nice if this or something
that achieves the same thing could be included in future releases.
----------
files: hg_patch_fileevents.diff
messages: 14882
nosy: sjstreeting
priority: feature
status: unread
title: Place temp files in recognisable location
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2591>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg_patch_fileevents.diff
Type: application/octet-stream
Size: 1058 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110112/a9af13e9/attachment.obj>
More information about the Mercurial-devel
mailing list