temporary log file
Martin Pool
mbp at sourcefrog.net
Mon Feb 13 00:07:59 GMT 2006
On 11 Feb 2006, Alexander Belchenko <bialix at ukr.net> wrote:
> John A Meinel пишет:
> >We could create it anywhere, I'm not positive why we are creating it in
> >that specific location.
>
> This behaviour was introduced between 0.6 and 0.7 and I personally find
> it very useful for some reasons. So I'm vote to leave this behaviour.
>
> Per example, when svn could not commit by some reasons it leaves commit
> message in file in current working directory. For later use.
Creating the log file in the working directory is also consistent with
arch and baz.
One reason to put it there is that the working directory may be more
protected against losing the user's valuable commit message -- for
example some linux distros have /tmp in tmpfs (a ramdisk) or
automatically erased at startup and so a power outage will lose their
commit message.
Perhaps it would be enough to make it in TEMPDIR and print the name if
the commit is aborted?
> And I would to know why someone have read-only bzr versioned directory
> and try to commit? Is it usual situation?
It does seem curious and unusual to me, but the original poster said he
was controlling files in /etc. It's reasonable to run bzr as a non-root
user to record a history of files that that the user cannot themselves
modify.
There may be some other assumptions in the code that the working
directory is writable.
> And don't remember exactly why but I find it useful. Removing this
> behaviour probably not good idea. If bzr could not create temporary log
> file in current directory then bzr may try to use TEMP directory as
> second try.
It's OK with me to either always use /tmp or try both. On the whole
people who want the arch-style behaviour may be better off just doing
'commit -F .bzr.msg', which I sometimes do.
--
Martin
-------------- 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/20060213/ff5107bd/attachment.pgp
More information about the bazaar
mailing list