Before this commit, the file names are /tmp/tmpn8smvlr8
After this commit, they are more like /tmp/hg-clone-n8smvlr8/00manifest.ndb3qj52v6,
which makes it much clearer what these files correspond to.
Details
Details
- Reviewers
marmoute Alphare - Group Reviewers
hg-reviewers - Commits
- rHG4ff4e23de7df: clone: use better names for temp files
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
There seems to be three patches in one here :
- adding a tryrmdir as a last line of defence
- using prefix= in mkstemp`
- a comment about hardlink=True (that could probably we a fix to the issue here).
Can you split that patch into three patches?
Comment Actions
I'll remove a hardlink=True comment (which is not really worthy of a phabsend), but I don't understand the purpose of the split between (1) and (2). The only reason we're removing a directory is that we're creating it and putting temp files there.
Actually, a commit message could be improved...