Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
anisha@linux-y3pi:~/Desktop/mysvn> svn list https://earthhtml.googlecode.com/svn/
branches/
manual.cpp
ogmap.html
svn-book.pdf
tags/
trunk/
wiki/

But, this downloads only one file:

anisha@linux-y3pi:~/Desktop/mysvn> svn checkout https://earthhtml.googlecode.com/svn/trunk
Checked out revision 3.

anisha@linux-y3pi:~/Desktop/mysvn> ls
manual.cpp  manual.cpp~  ogmap.html  svn-book.pdf  trunk

anisha@linux-y3pi:~/Desktop/mysvn> cd trunk/
anisha@linux-y3pi:~/Desktop/mysvn/trunk> ls
ogmap.html

Why is that so?

http://code.google.com/p/earthhtml/source/browse/#svn%2Ftrunk

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Because the directory contains only one file? Your link to the repository web view proves it. The files you listed first are one directory level higher, so if you want all of them, do:

svn checkout https://earthhtml.googlecode.com/svn

To see the one file with svn list, list the contents of the trunk folder:

 svn list https://earthhtml.googlecode.com/svn/trunk

Compare that with the previous command and it will hopefully be obvious, why you got only one file — you requested only the trunk folder, not the whole repository contents.

Repository structure:

branches/
    /.../
manual.cpp
ogmap.html
svn-book.pdf
tags/
    /.../
trunk/
    ogmap.html
wiki/
    /.../

svn checkout directly copies the structure of the repository (or it would be hard to sync back). If you only specify you want a subfolder, it will only download that; this is known as a partial checkout.

share|improve this answer
    
ofcourse, that's why I have asked the question. svn list doesn't show one file. It shows many. How are these things related? Please put the reply in your answer. –  TheIndependentAquarius Jul 9 '12 at 8:59
    
Ah,the address which you showed does download "everything", not just one file. But if you actually click the links you won't see any other file than the html, why is that so? –  TheIndependentAquarius Jul 9 '12 at 9:03
    
I updated the answer. –  lynxlynxlynx Jul 9 '12 at 9:05
    
I saw that, see if you get the same results by actually clicking on the links in that svn? –  TheIndependentAquarius Jul 9 '12 at 9:06
    
On the web interface? I do. Is the ogmap.html file that's confusing you? It's twice in there, both in / and in trunk. –  lynxlynxlynx Jul 9 '12 at 9:09
show 3 more comments

I may be missing something but you only checkout 'trunk' which actually have only one file in its thrid revision, nothing seems strange to me here. Try svn checkout https://earthhtml.googlecode.com/svn/ and let us know.

share|improve this answer
    
please see my comment on the other answer. –  TheIndependentAquarius Jul 9 '12 at 9:00
    
Look again at your svn list command you are missing /trunk at the end of it. –  Shadok Jul 9 '12 at 9:02
    
The address which you showed does download "everything", not just one file. But if you actually click the links you won't see any other file than the html, why is that so? –  TheIndependentAquarius Jul 9 '12 at 9:04
    
Okay, that's my stupidity. :) But still why these files being showed in the website? Are you able to see them? –  TheIndependentAquarius Jul 9 '12 at 9:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.