Improved ui.edit():
- Use descriptive name for temporary file: hg-editor-*.txt
- Don't import tempfile in the method, but use demandload()
- Remove tempfile file even if editor aborts.
#!/bin/shmkdir acd ahg initecho foo > bhg add bhg ci -m "b" -d "1000000 0"chmod -w .hgcd ..hg clone a bchmod +w a/.hg # let test clean upcd bhg verify