Best way to change Checkin Comments / Log Entries

Asked by TimeHorse

This is similar to https://answers.launchpad.net/bzr/+question/19300 but what I want to know is what if the checking was say 3 versions ago and I only wanted to change that comment but not the later ones. Is there an easy way to do that?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TimeHorse (timehorse) said :
#1

Oh, also, what if say I have 2 branches, a and b. b split off from a at say 50. Then I make a change to a, say 53, and then say I merge a:53 with b, checking in at b:52. Now I want to change the comment for a:53. Will that be reflected in the merge I just checked in at b:52?

Revision history for this message
John A Meinel (jameinel) said :
#2

The best I can think of is to:

  cd ..
  bzr branch my_branch copy_of_branch
  bzr revert -r -3 # Get the tree in the state it was in that I want to modify
  bzr uncommit -r -4 # Get the branch to point to before that spot, might need -5
  bzr commit -m "The correct message"
  bzr rebase -r -2 ../copy_of_branch

I'm not 100% sure about the arguments to the rebase command. But you have to regenerate all revisions that descend from the revision you want to change.

Can you help with this problem?

Provide an answer of your own, or ask TimeHorse for more information if necessary.

To post a message you must log in.