[Top][All Lists]
[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
- [Monotone-devel] mtn add weirdness, Koen Kooi, 2006/08/05
- Re: [Monotone-devel] Re: mtn add weirdness, Nathaniel Smith, 2006/08/06
- [Monotone-devel] Re: mtn add weirdness, Bruce Stephens, 2006/08/06
- Re: [Monotone-devel] Re: mtn add weirdness, Johan Bolmsjö, 2006/08/07
- [Monotone-devel] Re: mtn add weirdness, Koen Kooi, 2006/08/07
- Re: [Monotone-devel] Re: mtn add weirdness, Justin Patrin, 2006/08/07
- Re: [Monotone-devel] Re: mtn add weirdness, Jonathan S. Shapiro, 2006/08/07
- Re: [Monotone-devel] Re: mtn add weirdness, Nathaniel Smith, 2006/08/07
- [Monotone-devel] Re: mtn add weirdness, Bruce Stephens, 2006/08/07
- Re: [Monotone-devel] Re: mtn add weirdness, Nathaniel Smith, 2006/08/07