DhruvPathak DhruvPathak - 1 month ago 7
Linux Question

SVN list directories without having the latest checkout?

The command

svn list
will give me list of all the sub directories in the present directory.
However,it is only restricted to directories which are present in current version.

eg. say repository url is :

"http://www.example.com/svncode/mainproduct/trunk"
and inside trunk, there are 3 directories

trunk/
1/
2/
3/


If I do
svn list
it will show me all the directories
1 2 3
.
Now somebody else does a commit in trunk, which adds another directory
4
inside trunk.
Is there a way to check existence of that directory without first taking an update ? As
svn list
only provides information till latest
svn update
, not about changes that happened after that .

Background : I want to retreive the latest directory present inside trunk ( largest number means latest, 4 in this case), and want to checkout only that part of the trunk codebase, not full trunk .

Answer
 svn ls http://www.example.com/svncode/mainproduct/trunk