monotone-devel
[Top][All Lists]
Advanced

[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: Sun, 30 Aug 2009 15:45:56 -0500

On Fri, 2009-08-21 at 19:58 -0500, Timothy Brownawell wrote:
> 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 '.'.

Clone into the current directory should work now.

-- 
Timothy

Free public monotone hosting: http://mtn-host.prjek.net






reply via email to

[Prev in Thread] Current Thread [Next in Thread]