Automatically populate intermediate directories during check out

2010-09-04 Thread Mark _

Hi all,

When I want to check out something like 
http://mysvn/trunk/firstDir/secondDir/thirdDir/FourthDir/FifthDir I do the 
following:
svn co http://mysvn/trunk
cd trunk
svn up firstDir --depth files
cd firstDir
svn up secondDir --depth files
cd secondDir
svn up thirdDir --depth files

etc. etc.

Is there a way to simply check out the FifthDir directory and have all of the 
intermediate directories (firstDir, secondDir, thirdDir, fourthDir) 
automatically checked out?

Maybe I'm just being lazy :)  But I think this would be a useful feature, 
especially for big svn databases...

Thanks,
Mark
  

Re: Automatically populate intermediate directories during check out

2010-09-04 Thread Stefan Sperling
On Sat, Sep 04, 2010 at 05:07:31PM +, Mark _ wrote:
> 
> Hi all,
> 
> When I want to check out something like 
> http://mysvn/trunk/firstDir/secondDir/thirdDir/FourthDir/FifthDir I do the 
> following:
> svn co http://mysvn/trunk
> cd trunk
> svn up firstDir --depth files
> cd firstDir
> svn up secondDir --depth files
> cd secondDir
> svn up thirdDir --depth files
> 
> etc. etc.
> 
> Is there a way to simply check out the FifthDir directory and have all of the 
> intermediate directories (firstDir, secondDir, thirdDir, fourthDir) 
> automatically checked out?
> 
> Maybe I'm just being lazy :)  But I think this would be a useful feature, 
> especially for big svn databases...

Try this script:
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/svn-viewspec.py

It would be nice if a "viewspec" feature would make its way into Subversion
core in one way or another. There have been discussions about this on the
mailing lists in the past. However, AFAIK nobody is working on such a feature
at the moment.

Stefan


Re: Automatically populate intermediate directories during check out

2010-09-04 Thread Eric Hudish
Excerpt from svn help:

$ svn --help co

  -N [--non-recursive] : obsolete; try --depth=files or
--depth=immediates
  --depth ARG  : limit operation by depth ARG ('empty', 'files',
'immediates', or 'infinity')



In standard usage I believe you should be getting all the recursion based on
your first checkout command. If you are not, which evidently spawned this
email, I would check your [$HOME/.subversion/config]  and look for a depth
argument set to files. Files should take you only one level and if that is
setup in your config somewhere it would have the nasty consequence you're
describing.

I'm not aware of any way to produce this limitation at the server level,
which would mean the host   [http://mysvn]   would have a setting preventing
your recursion, but I guess it could be possible with some hooks. If it is
at the server level then you'd have to modify the server to allow the
recursion.


Hope this helps!


On Sat, Sep 4, 2010 at 1:07 PM, Mark _  wrote:

>  Hi all,
>
> When I want to check out something like
> http://mysvn/trunk/firstDir/secondDir/thirdDir/FourthDir/FifthDir I do the
> following:
> svn co http://mysvn/trunk
> cd trunk
> svn up firstDir --depth files
> cd firstDir
> svn up secondDir --depth files
> cd secondDir
> svn up thirdDir --depth files
>
> etc. etc.
>
> Is there a way to simply check out the FifthDir directory and have all of
> the intermediate directories (firstDir, secondDir, thirdDir, fourthDir)
> automatically checked out?
>
> Maybe I'm just being lazy :)  But I think this would be a useful feature,
> especially for big svn databases...
>
> Thanks,
> Mark
>



-- 
Eric M. Hudish
Cell: +1.724.977.3314
Goog: +1.814.689.9148
174 Faith Circle
Boalsburg, PA 16827


PGP Security Available
Search