1
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

2 Answers 2

3

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.

8
  • 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. Jul 9, 2012 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? Jul 9, 2012 at 9:03
  • I updated the answer. Jul 9, 2012 at 9:05
  • I saw that, see if you get the same results by actually clicking on the links in that svn? Jul 9, 2012 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. Jul 9, 2012 at 9:09
1

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.

4
  • please see my comment on the other answer. Jul 9, 2012 at 9:00
  • Look again at your svn list command you are missing /trunk at the end of it.
    – Shadok
    Jul 9, 2012 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? Jul 9, 2012 at 9:04
  • Okay, that's my stupidity. :) But still why these files being showed in the website? Are you able to see them? Jul 9, 2012 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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