editor backup file left over after bzr commit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
When doing a raw "bzr commit" with no -m, an editor is fired up on a temporary file with a name like "bzr_log.1ySd21". Once this is saved, the editor exits, and commit is successful, the file is deleted. However, many editors leave a backup file with a trailing tilde lying around afterward, e.g. "bzr_log.1ySd21~".
Since this type of backup file is left by most common UNIX editors (e.g. vim, emacs, xemacs, nano, nedit, kate, etc) it makes sense that bzr would go ahead and remove not just it's temporary file, but also that filename+"~".
I suppose there could be some (crazy?) concern that maybe the USER has a REAL file that they want to KEEP named "bzr_log.
An alternate -- and safer -- method that would be to create a unique directory "bzr_log.whatever" and put the log file in there, e.g. "bzr_log.
I think it's reasonable. At least commit command could provide special command-line flag to force such behavior. It should be easy to fix.