You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Harvey, Edward" <Ed...@patni.com> on 2008/02/13 16:03:47 UTC

Ignore not working as expected

Most likely it's my expectation that's at fault.  

Here's what I'm trying to accomplish:

Suppose there's a repository with some tree structure.
	20G	/
	18G	/documentation
	17G	/documentation/library
	1G	/documentation/procedures
	2G	/src

If I want to checkout / but I want to neglect /documentation/library, so
I'm checking out a total of 3G instead of 20G

I've tried everything I could think of, with the svn:ignore property,
but never achieved the desired result.  Any suggestions?

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Ignore not working as expected

Posted by Marc Haisenko <ha...@comdasys.com>.
On Wednesday 13 February 2008, Harvey, Edward wrote:
> Most likely it's my expectation that's at fault.  
> 
> Here's what I'm trying to accomplish:
> 
> Suppose there's a repository with some tree structure.
> 	20G	/
> 	18G	/documentation
> 	17G	/documentation/library
> 	1G	/documentation/procedures
> 	2G	/src
> 
> If I want to checkout / but I want to neglect /documentation/library, so
> I'm checking out a total of 3G instead of 20G
> 
> I've tried everything I could think of, with the svn:ignore property,
> but never achieved the desired result.  Any suggestions?

svn:ignore only influences commands like "svn status" but has no effect on 
checkout or export. It's used e.g. to have SubVersion ignore automatically 
generated files that you don't want to have under version control (and which 
constantly clutter your "svn status" output), like *.o files.

What you want is something entirely different: you want a selective checkout. 
This is currently not supported by SubVersion (but IIRC it might be included 
in 1.5).

Bye,
	Marc

-- 
Marc Haisenko

Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany

Tel.: +49 (0)89 548 433 321

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Ignore not working as expected

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 13, 2008, at 10:55, Reedick, Andrew wrote:

>> Here's what I'm trying to accomplish:
>>
>> Suppose there's a repository with some tree structure.
>> 	20G	/
>> 	18G	/documentation
>> 	17G	/documentation/library
>> 	1G	/documentation/procedures
>> 	2G	/src
>>
>> If I want to checkout / but I want to neglect /documentation/library,
>> so
>> I'm checking out a total of 3G instead of 20G
>>
>> I've tried everything I could think of, with the svn:ignore property,
>> but never achieved the desired result.  Any suggestions?
>
> Plan B:  'svn update -N'  -N will do a non-recursive checkout, but it
> requires a bit more effort.
>
> svn co -N /	  # leaves documentation and src empty
> svn update src   # full checkout of src
> svn update -N /documentation  # leaves library and procedures empty
> cd documentation
> svn update /documentation/procedures  # full checkout of procedures
>
> End result, library is empty, but everything else is checked-out.

Actually:

svn co -N $REPO wc
cd wc
svn up src
svn up -N documentation
svn up documentation/procedures

End result: there is no "library" directory in the "documentation"  
directory. Everything else is checked out, except that if anyone ever  
adds a new directory $DIR to $REPO or to the "documentation"  
directory, you won't see it in your working copy until you explicitly  
run "svn up $DIR".


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Ignore not working as expected

Posted by "Reedick, Andrew" <jr...@ATT.COM>.
> -----Original Message-----
> From: Harvey, Edward [mailto:Edward.Harvey@patni.com]
> Sent: Wednesday, February 13, 2008 11:04 AM
> To: users@subversion.tigris.org
> Subject: Ignore not working as expected
> 
> Most likely it's my expectation that's at fault.
> 
> Here's what I'm trying to accomplish:
> 
> Suppose there's a repository with some tree structure.
> 	20G	/
> 	18G	/documentation
> 	17G	/documentation/library
> 	1G	/documentation/procedures
> 	2G	/src
> 
> If I want to checkout / but I want to neglect /documentation/library,
> so
> I'm checking out a total of 3G instead of 20G
> 
> I've tried everything I could think of, with the svn:ignore property,
> but never achieved the desired result.  Any suggestions?
> 


Plan B:  'svn update -N'  -N will do a non-recursive checkout, but it
requires a bit more effort.

svn co -N /	  # leaves documentation and src empty
svn update src   # full checkout of src
svn update -N /documentation  # leaves library and procedures empty
cd documentation
svn update /documentation/procedures  # full checkout of procedures

End result, library is empty, but everything else is checked-out.


*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: Ignore not working as expected

Posted by "Roth, Pierre" <pi...@covidien.com>.
> 
> Most likely it's my expectation that's at fault.  
> 
> Here's what I'm trying to accomplish:
> 
> Suppose there's a repository with some tree structure.
> 	20G	/
> 	18G	/documentation
> 	17G	/documentation/library
> 	1G	/documentation/procedures
> 	2G	/src
> 
> If I want to checkout / but I want to neglect 
> /documentation/library, so I'm checking out a total of 3G 
> instead of 20G
> 
> I've tried everything I could think of, with the svn:ignore 
> property, but never achieved the desired result.  Any suggestions?
> 
This is the sparse checkout functionality which will be available with
next 1.5 release.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org