monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] clone cleanup failure on Windows


From: William Uther
Subject: Re: [Monotone-devel] clone cleanup failure on Windows
Date: Sat, 3 Mar 2007 14:01:59 +1100


On 02/03/2007, at 8:58 PM, Nathaniel Smith wrote:


On Fri, Mar 02, 2007 at 09:58:51AM +1100, William Uther wrote:
When clone is not supplied a --db argument it creates a new db in
_MTN/mtn.db in the new workspace.  If the clone command fails for
some reason (e.g. we try to clone a revision that doesn't exist in
the branch we specified) the we usually will not know this until the
new workspace has been created, the new db created in it, the branch
pulled from the remote server, and the rest of the checkout started.
[...]
Possible solutions:

 i) Don't clean up (let the user clean up).  This is at least saves
the database they've just pulled, although it is in a place they're
unlikely to find it by themselves.

 ii) Don't clean up on windows.

 iii) Someone fixes the problem on Windows.  Unfortunately, I'm not
sure I can do this.  I don't have access to a windows build
environment, and debugging by build-bot is, well, inefficient.

iv) Don't put the db file into _MTN?  It's kind of a funny place for
it, seems to be causing trouble, and I worry it's going to totally
bite someone on the butt when they (spread out over some months) do:

$ mtn clone venge.net 'net.venge.monotone*' -b net.venge.monotone src
  $ cd src
  src$ mtn co -r h:net.venge.monotone.foo ../foo
  src$ cd ..
  $ rm -rf src # don't need this checkout anymore
  $ cd foo
  foo$ mtn diff  # errors out, missing database

I'm certainly not going to claim the _MTN/mtn.db approach doesn't have problems. I caught some of them: if you pass a workspace as a DB, mtn will now give you the path to the db for that workspace in the error message.

We could add a check to checkout; if the db you're using is in the _MTN directory of the current workspace then you get a warning.

Otherwise, can we agree on a better location? I haven't seen an obviously 'right' one yet.

I'm leaning towards not cleaning up on windows for the moment.

Be well,

Will     :-}






reply via email to

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