.. -*- restructuredtext -*-

fixrenames extension

Mercurial relies on an accurate record of renames in order to do
merges properly. If a file is moved without informing Mercurial about
it (with ``mv old new``, say), then Mercurial thinks that the old file
has disappeared and it wont know anything about the new file. The
status output will be::

  $ hg status
  ! old
  ? new

Simply adding the new file and removing the old with::

  $ hg remove --after old
  $ hg add new

is not good enough: Mercurial will then not know about the rename.
The ``hg addremove`` command can be used to detect such renames and
record a proper rename::

  $ hg addremove
  adding new
  removing old
  recording removal of old as rename to new (100% similar)

However, this must be done *before* the commit is made and one cannot
fix old mistakes that way. This extension can be used to replay old
history to record the missing rename information.


This work was done for the `OLAT project`_ at the `University of
Zurich`_ by `aragost Trifork`_. Feel free to contact `aragost
Trifork`_ to discuss any further improvements to the extension.


Martin Geisler <>

.. _OLAT project:
.. _University of Zurich:
.. _aragost Trifork: