The following patch updated issue issue1765 with resolvedin=2.5.0 (current)
* resolve issue1765: refuse to remove non-tracked directories recursively
Ignore-this: ee68c106b9320035e66563387c82d1de
The modifyTree function from hashed-storage makes any directories on the path
to modify exist. When removing a non-tracked file, this made darcs assume that
its parent directory was tracked, even when it wasn't.
This patch makes darcs do the modifyTree only when the remove of a file
actually succeeded, so that when a remove of a non-tracked file fails, darcs
won't have a data structure that reflects a world where this removal succeeded.
|