On Thursday 14 December 2006 21:46, Guyren Howe wrote:
> svn add *
> is not descending into folders and adding files modified therein. I
> have added said folders to my repository.
My 'svn add *' _is_ descending into folders and is adding all files therein,
not just the modified ones (?).
If you would _not_ want this I would have to use the '-N' option.
Check your shell aliases and also for 'svn' wrapper scripts. Maybe you have
the -N option included somewhere hidden.
> The link above is to the immensely confusing reply, to whit:
> I suspect the issue at hand is that your "includes" dir is already
> controlled. Since you're just saying "svn add *" the "*" never
> expands into
> the subdirectories which are already controlled.
The * expansion is done by the shell and not be svn, so a 'svn add *' should
add all files and dirs in the current working dir.
> I did find the --force option on the add command, and that did
> descend into my subdirectories and find the changed files. But then,
> when I do commit, I don't see the modifications.
You need the --force option only if your dirs are already added and you only
like to add included files and dirs under this dir. Do you??
Then you should get without --force warnings like '<DIR> is already under
version control' and you _should_ have mentioned that in your post!
> Someone, somewhere, please explain why this is the sensible way for
> things to work. There is clearly some bizarre assumption at work here
> about how I'm supposed to treat my repository that I just don't get.
If you really just like to add all new files deep in your dirs then you
shouldn't tell svn to _add_ the already added maindirs. This doesn't make any
logical sense and thereof svn is not doing what you expected.
You must _of course_ use the --force option to force svn to go into already
added dirs _again_. That's absolute normal and not bizarre.
Normally you say 'svn add <file>' in the subdir where you have the new file
directly after you created the file. At least thats what I always do.
> (Also, some options about how to fix this would be nice, too. Do I
> svn delete my directories?)
Fix: use 'svn add --force *' or also 'svn add --force .' if you like to add
all new files in your dir.structure.
Do never use 'svn delete' as long you don't like to mark your files/dirs as
delete in the repository (deletes you working copies as well!).
Hope I could help you,
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Thu Dec 14 22:25:49 2006