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

Re: Question on Subversion Functionality

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-28 19:56:39 CEST

On Aug 28, 2007, at 10:40, Mark Eramo wrote:

> Thank you for the information however I am still having an issue so
> I must still be doing something wrong.
>
> To recap....
> What I have is, for example, the project *svn/project1* in
> Subversion was checked out to */home/user/project1*
>
> Now, a new folder was added in Subversion, *svn/project1/test
>
> *I have already seen that if I try to checkout *svn/project1/test
> *to */home/user/project1/test, *it sees it as 2 separate checkouts
> because in subcommander, the* test *folder shows up with a question
> mark so it does not think it is under svn control.
>
> I tried doing just an update but it does not clear the ? flag. I
> also tried just doing an update of the working copy at the folder
> level but it does not update the */home/user/project1 *folder to
> include *test.
>
> *Could it be that when I did a checkout on */home/user/project1 *I
> did not do a recursive checkout so now when I try to recursively
> add a folder, it does not do it. Maybe I am using the update
> command the wrong way.
>
> Any additional thoughts or comments would be much appreciated.

If you explicitly asked for a non-recursive checkout (that is, you
did "svn checkout -N" or "svn checkout --non-recursive") then an
update would not pull in any new directories, true. You can receive
the new directory by specifying it: "svn up test". However, non-
recursive checkouts are an unusual usage and not terribly
recommended, as the non-recursive checkout feature is somewhat broken.

Let's try again.

You checked out project1. That is, you typed:

cd /home/user
svn checkout $URL/svn/project1

Now you said "a new folder was added in Subversion, *svn/project1/
test". What do you mean? Where was it added? On the same machine, in
this working copy? You used your OS function to make the directory
(as in "mkdir test")? If so, then it's expected that the directory
shows up with a "?" indicating that it is not versioned. If you would
like to add "test" to the repository, do "svn add test" and then "svn
commit -m 'adding test directory'".

Or are you saying that on another machine, "test" was made, added and
committed to the repository? If so, then on this machine, "svn
update" will pull it down from the repository server and update your
working copy. If it does not, then your working copy seems to be
broken. Try checking out a new working copy:

cd /home/user
mv project1 project1-broken
svn checkout $URL/svn/project1

Do you now have the test directory? If it's in the repository, you
should.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 28 19:55:23 2007

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