[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] non-recursive add considered harmful
From: |
Ralf S. Engelschall |
Subject: |
Re: [Monotone-devel] non-recursive add considered harmful |
Date: |
Wed, 14 Mar 2007 20:05:07 +0100 |
User-agent: |
Mutt/1.5.14 OpenPKG/CURRENT (2007-02-12) |
On Wed, Mar 14, 2007, Sebastian wrote:
> [...]
> I use monotone cvs git, and svn depending on the project I work on, and
> the people I work with. Having recursive add in mtn would bother me,
> since it would behave different from the add command in all SCMs I
> know.
> [...]
Err... "cvs add" is non-recursive, yes.
But "svn add" and "git add" _ARE_ recursive, of course.
GIT:
| $ cd /tmp
| $ mkdir work
| $ cd work
| $ git init
| Initialized empty Git repository in .git/
| $ mkdir -p a/b/c
| $ touch a/b/c/{d,e,f,g}
| $ git add a
| $ git status
| # On branch master
| #
| # Initial commit
| #
| # Changes to be committed:
| # (use "git rm --cached <file>..." to unstage)
| #
| # new file: a/b/c/d
| # new file: a/b/c/e
| # new file: a/b/c/f
| # new file: a/b/c/g
| #
SVN:
| $ svnadmin create /tmp/svn
| $ svn co file:///tmp/svn work
| Checked out revision 0.
| $ cd work
| $ mkdir -p a/b/c
| $ touch a/b/c/{d,e,f,g}
| $ svn add a
| A a
| A a/b
| A a/b/c
| A a/b/c/d
| A a/b/c/e
| A a/b/c/f
| A a/b/c/g
| $ svn stat
| A a
| A a/b
| A a/b/c
| A a/b/c/d
| A a/b/c/e
| A a/b/c/f
| A a/b/c/g
So, it looks most of the newer SCMs already use a recursive "add"
command and not vice versa. I'm personally favor that all Monotone
commands operating on a directory are operating recursively on this
directory by default...
Ralf S. Engelschall
address@hidden
www.engelschall.com
- [Monotone-devel] non-recursive add considered harmful, Daniel Carosone, 2007/03/13
- Re: [Monotone-devel] non-recursive add considered harmful, Markus Schiltknecht, 2007/03/13
- Re: [Monotone-devel] non-recursive add considered harmful, Brian May, 2007/03/14
- Re: [Monotone-devel] non-recursive add considered harmful, Ulf Ochsenfahrt, 2007/03/14
- Re: [Monotone-devel] non-recursive add considered harmful, Sebastian, 2007/03/14
- Re: [Monotone-devel] non-recursive add considered harmful, Ben Walton, 2007/03/14
- Re: [Monotone-devel] non-recursive add considered harmful,
Ralf S. Engelschall <=
- Re: [Monotone-devel] non-recursive add considered harmful, Daniel Carosone, 2007/03/14
- Re: [Monotone-devel] non-recursive add considered harmful, Brian May, 2007/03/16
- Re: [Monotone-devel] non-recursive add considered harmful, Richard Levitte - VMS Whacker, 2007/03/16
- Re: [Monotone-devel] non-recursive add considered harmful, Jack Lloyd, 2007/03/16
- Re: [Monotone-devel] non-recursive add considered harmful, Ulf Ochsenfahrt, 2007/03/16
- Re: [Monotone-devel] non-recursive add considered harmful, Markus Schiltknecht, 2007/03/17
- Re: [Monotone-devel] non-recursive add considered harmful, Markus Schiltknecht, 2007/03/17
- Re: [Monotone-devel] non-recursive add considered harmful, Nathaniel Smith, 2007/03/17