D468: util: use ~ as a suffix for a temp file in the same directory as a source file
smf (Sean Farley)
phabricator at mercurial-scm.org
Wed Aug 23 16:54:10 EDT 2017
smf added a comment.
In https://phab.mercurial-scm.org/D468#7916, @durin42 wrote:
> In https://phab.mercurial-scm.org/D468#7914, @smf wrote:
>
> > Basically, I was pondering aloud if '~' would be enough to future-proof us and if we shouldn't just rename all temp files to something unique (HG_EDITOR for commits, HG_HISTEDIT for histedit, etc). What I was hoping for was a discussion on that.
>
>
> This sounds like a good idea. However, if I'm understanding @mbolin correctly, we /also/ want a ~ suffix (or similar) so that devtools don't need to grow hg-specific logic for tempfiles (since, in the case of a ~ suffix, we'll be enough like vim that they will already correctly ignore things). Do I have a reasonable handle on this, or is there more nuance that I'm missing?
Yeah, I don't know what happened. I guess I misread this and thought it was similar to work I did before. I withdraw my concerns and apologize for derailing this.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D468
To: mbolin, #hg-reviewers, quark, durin42
Cc: smf, mercurial-devel
More information about the Mercurial-devel
mailing list