[MERGE][0.15] Add a way to specify a template commit message

James Westby jw+debian at jameswestby.net
Mon Feb 26 21:51:14 GMT 2007


On (06/02/07 12:02), Martin Pool wrote:
> The handling of the file seems over complicated and it is preferable to
> have close() in a finally block, particularly on Windows.  How about
> just 
> 
>   ... mkstemp
>   msgfile = os.fdopen(tmp_fileno)
>   try:
>     ....
>   finally:
>     msgfile.close()
> 

I've done this. It looks a lot better now I think.

Thanks,

James

-- 
  James Westby   --    GPG Key ID: B577FE13    --     http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256
-------------- next part --------------
A non-text attachment was scrubbed...
Name: editmsg.diff
Type: text/x-diff
Size: 17246 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070226/1988fa41/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070226/1988fa41/attachment.pgp 


More information about the bazaar mailing list