I use Eclipse Subversion client to checkout my project from a svn repository.
My coworkers has committed 2 new files which i can see on the svn remote repository but I can't get them when i update from the head.
The 2 files are in the trunk, like me.
Someone have an idea ?
Asked
Active
Viewed 1.4k times
8

Julius
- 81
- 1
- 1
- 2
-
What kind of files are they? Are they in a subdirectory? What does it say when you try to update? – Pekka Nov 06 '09 at 16:18
-
2For a start, what does "svn status -u" say about these files? – Avi Nov 06 '09 at 16:52
-
Do these files have a path longer than 255 characters? https://stackoverflow.com/questions/2802727/svn-255-character-problem – matth Nov 21 '19 at 13:44
4 Answers
9
Perhaps you have a sparse checkout? Then you could try do to an explicit update to the files:
svn update path/to/missing/file.txt

tangens
- 39,095
- 19
- 120
- 139
-
I am using this as well, since I have a very sparse checkout. But I want a way to get ALL the missing files... still searching. – Andrew Nov 25 '11 at 07:44
-
This doesn't work for me, it refuses to download it, it's because prior to deletion there were merge conflicts. Even though the file is gone, the merge conflicts remain, and this stops it from restoring the file :S – Owl Dec 18 '18 at 17:02
5
Old question, but I had a similar problem.
This is what I did. Check with
svn ls
and compare to
ls -1
Then
svn ls | xargs svn up
To do this recursively just add -R
svn ls -R | xargs svn up
Note that this will take a while if you have a big code base

Justin Hamade
- 833
- 8
- 15
-
Great answer! As an aside, I am saddened that eclipse subversion cannot be trusted to keep svn in-sync. I mean, a simple svn ls uncovers the issue -- what terrible things is this eclipse software doing such that it misses svn files in a project that simple command line instructions can uncover? – DragonMoon Jun 14 '17 at 22:09
1
You can also explicitly update to a revision using '-r' and then the current revision number:
svn update -r 1234 path/to/missing/file.txt

fuzzygroove
- 31
- 5
0
I switched to the HEAD and set the recursive options to full in the Eclispe Team menu. And now it works :-) Curious I was on the head before.

Julius
- 81
- 1
- 1
- 2