[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] clone into current directory
From: |
Timothy Brownawell |
Subject: |
Re: [Monotone-devel] clone into current directory |
Date: |
Fri, 21 Aug 2009 19:58:02 -0500 |
On Wed, 2009-08-19 at 06:25 -0500, Hugo Cornelis wrote:
> Hi,
>
>
> If I do (note the dot at the end)
>
> mtn clone repo-genesis3.cbi.utsa.edu:4698 --branch 0 .
>
> I get
>
> mtn: misuse: clone destination directory
> '/local_home/local_home/hugo/tmp' already exists
>
> Is there any reason why the current directory works well when doing a
> checkout, but not for a clone?
No serious reason that I know of.
It looks like 'clone' will remove the target directory if anything
fails, while I don't see code to do this in 'checkout' (I think all the
things that reasonably can fail are before it actually creates any
files). Probably the right thing here would be to have the
remove_on_fail cover only the _MTN directory (created early because it
contains the db) instead of the target directory, only in the case that
the target directory is '.'.