correcting old log messages

Alexander Belchenko bialix at ukr.net
Tue Jan 29 19:31:32 GMT 2008


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

Stuart McGraw пишет:
| I have another question about something I do in
| CVS now, but don't see a way to do with Bazaar
| and that is to change commit (aka log) messages.
|
| Often I will notice, long after the fact, that in
| a commit message I made a typo, or the message does
| not clearly explain a change, or is just plain wrong.
| In CVS, it is easy to simply edit the repository
| file(s) to change an old log message.
|
| Is there a way to do this wth Bazaar?  I know I
| can uncommit or rollback but I am talking about
| correcting messages dozens or more revisions
| in the past.  Although I am still working on
| understanding how bazaar works, from what I gather
| so far, it seems like commit messages are immutable,
| but I'm hoping there may be some way (hacks included)
| of doing this.  (It drives me nuts to see the
| same lame typo's over and over again... :-)

A long time ago I wrote one hackish plugin that did
exactly what you describe: it allows to edit older
commit messages. I used this CVS feature many times
when I working with TortoiseCVS.

But actually it's the wrong path, because Bazaar
is decentralized and distributed system and
you may end with the state when some branches
of your project still used old&wrong commit messages
and some branches will use new&corrected ones.

It's just the way to disaster.

For CVS it's works fine because there is [always]
only one repository where commit messages are stored.
So it's safe to edit them when needed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHn38UzYr338mxwCURAge6AKCDNR42RHWkGlP6ZNkRqywum1TLQACfYokf
QN8AxqB2hfM7jRd3b4AQPfE=
=j5On
-----END PGP SIGNATURE-----



More information about the bazaar mailing list