ncoronado / tracshell

Automatically exported from code.google.com/p/tracshell
1 stars 0 forks source link

Edition abort when the editor didn't save the file #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When editing or creating a ticket, even if I quit the editor without saving, 
the ticket edition/creation 
takes place anyway.

I am submitting a patch that checks the mtime of the temp file before and after 
the subprocess call, 
and if the 2 mtimes are the same, editon/creation aborts. I also removed some 
code duplication.

Original issue reported on code.google.com by hsoft@hardcoded.net on 1 Apr 2009 at 3:47

Attachments:

GoogleCodeExporter commented 8 years ago
The editing/creating functions are really messy and I've never been too pleased 
w/
them. Thanks for the patch.

Original comment by j.kennet...@gmail.com on 3 Apr 2009 at 1:48

GoogleCodeExporter commented 8 years ago
added

Original comment by j.kennet...@gmail.com on 3 Apr 2009 at 7:28