[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Cloaking

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-24 00:07:34 CET

Please use "Reply To All" so that your reply also gets to the list,
not just to me.

On Nov 23, 2006, at 16:16, Ronan Lucio wrote:

> Ryan,
> Ryan Schmidt escreveu:
>> Simply do not "svn add photos". Furthermore, "svn propset
>> svn:ignore photos ." so that Subversion doesn't show "photos" as
>> an unversioned directory in "svn status".
>> Alternately, if you would like to have the directory "photos" in
>> the repository, but have it be empty, then "svn add --non-
>> recursive photos" and "svn propset svn:ignore '*' photos" so
>> Subversion doesn't try to version its contents.
> Thank you very much for your attention.
> Iīve being reading the Subversion Book (http://svnbook.red-bean.com/)
> but it has too many information to be understand in one time that
> my mind is in a mess.
> First let me understand a thing:
> I imported the repository:
> "svn import /svn/project /home/project" (Iīm in the server)

So /svn/project contains your existing code, and /home/project is a
repository you created? Ok.

> Everything seems to be fine. If I type http://server/svn/project
> in the browser, I see the files and directories there.

That may be, but Subversion has nothing to do with it. Subversion
hasn't made any changes to /svn/project; it has merely imported it
into the repository at /home/project.

> But (still in the server), if I type "ls /svn" the directory project
> doensīt appear in the list
> So, if I type:
> cd /svn
> svn propset svn:ignore project/site/photos
> I get an error (Itīs in portuguese, but itīs something like
> "Explicit target required").
> So I tried:
> svn propset svn:ignore file:///svn/project/site/photos
> Whatīs wrong here?

A couple things...

First of all, your "svn import" command has imported the various
photos into the repository. Therefore, anyone who checks out a
working copy will receive them. To meet your goal of *not* having the
photos checked out, you should *not* import them to begin with. An in-
place import could help with this; read about it here:


What's wrong with your svn propset command is that it requires three
arguments: the property to set ("svn:ignore"), the value of that
property (you didn't provide one), and the path of the object on
which you want to set this property (you provided a URL which doesn't
make sense; either provide a URL to something in the repository, e.g.
file:///home/project/something, or better yet, a path to an item in
the working copy. That way you can preview the change before
committing it. As I showed in my first message, I guess you either
want to ignore the "photos" directory and not add the "photos"
directory, or you want to add the "photos" directory and ignore
everything in it.

Another thing that's wrong is that you have merely imported; you have
not yet checked out a working copy, which you will more than likely
want to do.

It will help for you to read and understand more of the book. If
reading onscreen is difficult, printed books are available too, and
not just in English. Here are some:


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 24 00:08:54 2006

This is an archived mail posted to the Subversion Users mailing list.