[PATCH 0 of 3] Refactor patch copies, finalize backends

Patrick Mezard pmezard at gmail.com
Wed May 25 14:26:04 CDT 2011


This series refactors rename and copy handling so they behave exactly like a
file creation with a copy source annotation. This simplifies the patching logic
and the backend interface at the price of an additional temporary copy. At this
point, the backend interface captures all patching operations in a simple way
and should be ready to implement a repository-based version. The last patch
fixes a 3.5 years old bug related to overwriting untracked files, suggesting
the refactored code might really be an improvement.

I expect some discussions about the filestore class introduced in the second
patch and whether its naive implementation (no caching) is good enough for now.


More information about the Mercurial-devel mailing list