monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Re: mtn add weirdness


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Re: mtn add weirdness
Date: Tue, 8 Aug 2006 21:57:28 -0700
User-agent: Mutt/1.5.12-2006-07-14

On Wed, Aug 09, 2006 at 10:00:19AM +1000, Daniel Carosone wrote:
> > mtn add dir/dir2/dir3/foo.file -> adds file + dirs
> > mtn commit dir/dir2/dir3/foo.file -> errors out
> 
> It errors out if you haven't first done the add.  If you have done the
> add, with the commands in this order, it works fine and behaves as
> most of us seem to expect.

No, he's right on the facts -- if dir, dir2, dir3 are not already
versioned, then you get:

$ mtn add dir/dir2/dir3/foo.file 
mtn: adding dir to workspace manifest
mtn: adding dir/dir2 to workspace manifest
mtn: adding dir/dir2/dir3 to workspace manifest
mtn: adding dir/dir2/dir3/foo.file to workspace manifest
$ mtn commit dir/dir2/dir3/foo.file   
mtn: warning: restriction excludes addition of 'dir/dir2/dir3' but
     includes addition of 'dir/dir2/dir3/foo.file'
mtn: misuse: invalid restriction

That's with current mainline; with 0.28, the add command prints only:

$ mtn-0.28 add dir/dir2/dir3/foo.file 
mtn-0.28: adding dir/dir2/dir3/foo.file to workspace manifest

even though it in fact adds all of those directories; this might be
part of the confusion...

-- Nathaniel

-- 
.i dei jitfa fanmo xatra




reply via email to

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