Ryan Schmidt wrote, On 03/01/06 06:52:
> No, svn isn't what's ignoring items beginning with "."; rather, it's
> your shell. Your shell expands "*" into "all items whose names do not
> begin with '.'" and sends that expanded list of files to svn, exactly
> as if you had typed them yourself. Subversion never sees that you
> typed "*".
Ok... Ok... my shell... not svn... ;-)
> Try "ls -ld .*" and you'll see that your shell expands ".*" into a
> list that also includes "." and "..". Adding "." means adding all of
> the current directory, and adding ".." means adding the parent
> directory, which as you see Subversion doesn't support.
Again... my shell... not svn... ;-)
> I was going to say that you might be able to use "find" instead of
> shell expansion, except that I can't figure out how to make find work
> non-recursively
-maxdepth?
$ find . -maxdepth 1
.
./.svn
./.foo-dir
./.bar-dir
./bar-dir
./foo-dir
./.foo.txt
./.bar.txt
./foo.txt
./bar.txt
./ignore.txt
> Maybe if you can generate the proper listing of files using ls you
> can send it to svn's argument list using xargs. Something like "ls
> -A" would give you all files, including dot files, but excluding "."
> and "..", but you can't feed that directly to svn with xargs because
> it's not escaped properly. (Filenames containing spaces or other
> special chars would break it.)
>
> Why are we doing all this again? Oh right, you said something about
> using Subversion as a backup solution. I'm not sure if this is really
> the best way to go about that. Have you considered something like
> FSVS instead? It's designed with backups in mind.
>
> http://fsvs.tigris.org/
Gunter message about opaque directories / FSVS
(http://subversion.tigris.org/servlets/ReadMsg?list=users&msgNo=42942)
has caught my attention! It's next on my "To explore list"!
Thank you very much Ryan. Your help and explanations are very appreciated!
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 3 16:39:37 2006