0.18: checking removes files automatically?

Harald Meland harald.meland at usit.uio.no
Mon Aug 20 10:32:22 BST 2007


[Andrew King]

> By the way, what is the correct way for a user do to fix a problem
> when they have committed a revision with a file being incorrectly
> removed?

If uncommit is an option:

  bzr commit -m "Oops"
  bzr uncommit
  bzr revert implicitly_removed_file
  bzr commit -m "Phew"

If not:

  bzr commit -m "Oops"
  bzr revert -r -2 implicitly_removed_file
  bzr commit -m "Reverted oops (phew)"

If the incorrectly removed files has been renamed and changed, be sure
to un-rename it just before the fixup commit.
-- 
Harald



More information about the bazaar mailing list