When you use darcs move on a non-repository path, it gives funny error
messages. Some examples (with darcs 2.4.98.5) from the darcs darcs repo:
===
$ darcs move GNUmakefile /var/lib
Ignoring non-repository paths: /var/lib
darcs: Cannot rename a file or directory onto itself!
$ darcs move GNUmakefile dontexist /var/lib
Ignoring non-repository paths: /var/lib
darcs failed: The target directory dontexist isn't known in working
directory, did you forget to add it?
$ darcs move GNUmakefile src /var/lib
Ignoring non-repository paths: /var/lib
$ darcs wh
move ./GNUmakefile ./src/GNUmakefile
===
This happens because darcs move does not expect that the fixSubPaths
function returns a list that is shorter than its argument. That case
occurs when you supply non-repository paths (on darcs without patch404
these have to be absolute).
|