Checkout single file (sparse checkout) in Subversion (SVN). Get single file or selected filesBy neokrates, written on July 21, 2010 |
howto |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Most important features for perfect mp3 player are?
- Smth. else (81%, 13 Votes)
- Price (13%, 2 Votes)
- Simple, good usability (13%, 2 Votes)
- Sound quality (13%, 2 Votes)
- Brand (cool to own new iPod) (0%, 0 Votes)
- Design (0%, 0 Votes)
- Cool features (DNSe, appz, etc) (0%, 0 Votes)
- Integrates with other things (3rd party created sound system for my mp3 player) (0%, 0 Votes)
- Physical feats (small, light, flat, etc) (0%, 0 Votes)
- Extras (good earphones etc) (0%, 0 Votes)
Total Voters: 16
Loading ...
Most popular search terms:
Reason, why it is not possible, is trivial: .svn metadirectory works ONLY on directory level, not for single file. That will probably change with WC-NG which does not work on per directory level.
The checkout operation is not possible on the single file (but it will be in 1.7). Still, there are at least two simple ways to get single file with subversion.
Svn before 1.7 supports only svn export on the single file:
svn export https://your.svn.host/path/to/your/file/file.name
That is not a checkout, you just get one file. It will not be under version control.
Alternatively, you can do an empty checkout and then pick a single file you want:
svn checkout $url_of_big_dir $target_dir --depth empty cd $target_dir svn up $file_you_want
Source:
http://stackoverflow.com/questions/122107/checkout-one-file-from-subversion
|
LEARN MORE (amazon bookstore)
|
|
TAGS
|
|
RELATED
|
Pages
Posts
|
|
SOCIAL
|
|
INCOMING SEARCH TERMS
|



















[...] Wi?cej: Checkout single file (sparse checkout) in Subversion (SVN). Get … [...]
Like or Dislike:
1
0
for me this didn’t work. I’m on Cygwin (using a Windows version of svn).. I needed to do
cd $target_dir
svn checkout $url_of_big_dir . –depth empty
svn up $file_you_want
cd -
Like or Dislike:
0
0
Hey Karl,
what version of svn do you use and what exactly was failing?
Actually,
svn checkout $url_of_big_dir . –depth empty
and
svn checkout $url_of_big_dir $target_dir –depth empty
are equal. You just change the sequence : go into dir, checkout. Not checkout, go into dir.
Obviously, you plan will not work if you don’t make or have $target_dir first, in my case svn creates it for you.
Like or Dislike:
0
0