On Fri, Jul 31, 2009 at 2:31 PM, Lele Gaifax<l...@nautilus.homeip.net> wrote:
> As you can see, both the explicit move of "a -> a.txt" and the > "retrospective" one "b -> b.txt" had the same effect on the recorded > patch, no new option is required IMHO. After further experimentation, it seems the problem is caused by trying to "darcs move" a file to an as-yet-unadded directory: $ mkdir test $ cd test $ darcs init $ echo "contents" > file $ darcs add file $ darcs wh -l A ./file $ darcs record -a -m "first" Finished recording patch 'first' $ mkdir dir $ mv file dir/file Now, if I add the directory before attempting the darcs move: $ darcs add dir $ darcs move file dir/file $ darcs wh -l ./file -> ./dir/file A ./dir/ $ darcs record -a -m "second" Finished recording patch 'second' No problem. Whereas if I forget to add the directory before attempting the darcs move, but add it when reminded: (preamble repeated but omitted) $ darcs move file dir/file darcs failed: The target directory dir isn't known in working directory, did you forget to add it? $ darcs add dir $ darcs move file dir/file darcs failed: There is no file or dir named file in the repository. $ darcs wh -l A ./dir/ R ./file a ./dir/file Is this a bug, or my misunderstanding? Thanks, Hamish _______________________________________________ darcs-users mailing list darcs-users@darcs.net http://lists.osuosl.org/mailman/listinfo/darcs-users