[darcs-users] small UI complaint: please don't create a parent directory for me

zooko at zooko.com zooko at zooko.com
Thu Oct 7 11:33:41 UTC 2004


Am I the only one who has to rename and delete the extra parent directory after
every darcs get?

zooko at gir:~/www/repos/shtoom/upstream$ mkdir onlyzookopatches
zooko at gir:~/www/repos/shtoom/upstream$ cd onlyzookopatches
zooko at gir:~/www/repos/shtoom/upstream/onlyzookopatches$ darcs get ../head/
zooko at gir:~/www/repos/shtoom/upstream/onlyzookopatches$ l
drwxrwxr-x    5 zooko    zooko        4096 Oct  7 12:22 ./..
drwxrwxr-x    4 zooko    zooko        4096 Oct  7 12:23 ./head
drwxrwxr-x    3 zooko    zooko        4096 Oct  7 12:23 ./.
zooko at gir:~/www/repos/shtoom/upstream/onlyzookopatches$ mv head/* .
zooko at gir:~/www/repos/shtoom/upstream/onlyzookopatches$ rmdir head/

When I say "darcs get ../foo/", I do *not* mean "get a copy of the darcs
repository in 'foo', and put it in a newly created directory named './foo'.".
I mean "get a copy of the darcs repository in 'foo' and put it here.".  If I
wanted it to be in a directory named "foo" (which I almost never do), then I
would have said "mkdir foo ; cd foo ; darcs get ${OTHERDIR}/foo".

Or, I could use an option to "darcs get" such as "--directory=", which is
parallel to "cvs co -d".

Regards,

Zooko





More information about the darcs-users mailing list