Patch for commit messages with an editor

Torsten Marek shlomme at gmx.net
Tue May 24 12:35:53 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

uws schrieb:
> På Mon, May 23, 2005 at 04:21:40PM +0200, Torsten Marek skrev:
> 
>>Johan Rydberg schrieb:
>>
>>>Why not use a temporary name instead?
>>
>>I was "inspired" by subversion, which uses svn-commit{.x}. A temporary
>>filename is fine as well, except for one thing: if you happen to use an
>>editor that creates backups of edited files, you are left with
>>.bzr-commit.0~ in the one case and sth like. 0txc5423~ in the other. Or
>>should the commit file be put into /tmp?
> 
> 
> Why save a commit message if you've just committed a revision along with the
> commit message? I think os.tmpnam will be fine.
That's not the thing, but certain editors do xxx~ backups of file that are
saved. Anyway, doesn't matter - I'll change it into os.tmpnam.

> 
> Another thing: can bzr please default to open an editor mode if neither -m
> or --file was specified? (I always forget to specify a commit message when
> doing partial commits)
> 
This is the default behaviour of the patch I sent.

greetings

Torsten

- --
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146  894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCkxGZfMVFHqJEyFgRAgyAAKDI+FR1afBv/ctsRD1jsreMGA6KugCgphrh
AGaBpKQlxUxECrT8mv6zKQU=
=mtXD
-----END PGP SIGNATURE-----




More information about the bazaar mailing list