Fixing moves

Harald Meland harald.meland at usit.uio.no
Wed Jun 9 12:48:05 BST 2010


[David Muir]

> Is there a way to apply moves to files that were moved, say 20 revs ago?

Not quite sure how to interpret that, is the following anywhere near
what you want?

Branch just before/after (depending on what you want) the old moves:

  bzr branch -r -20 my_branch fix_moves

Fix the moves:

  cd fix_moves
  bzr mv wrong_name right_name
  bzr commit -m "fixed move"

Merge the fix:

  cd ../my_branch
  bzr merge ../fix_moves
  # You might need to resolve conflicts here.
  bzr commit -m "merge move fixes"

-- 
Harald



More information about the bazaar mailing list