Is there a way to perform a SVN checkout (or export), which would fetch only the directory structure; that is to say, no files?
相关问题
- How can I set the SVN password with Emacs 23.1 bui
- If statements in .htaccess files, to enable passwo
- SVN+SSH checkout over VPN using tortoise SVN, Smar
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
相关文章
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- Incompatible JavaHl library loaded
- TFS vs. JIRA/Bamboo/SVN [closed]
- converting svn repo to git using reposurgeon
- SVN查看日志超时
You can specify --non-recursive to the checkout command, might help you to get what you want.
Export, not a checkout.
[Updated]
With checkout:
This will be pretty slow for anything too large.
on windows and with TortoiseSVN you can do Checkout -> checkout depth: only this item. this way you can get single folders/files. you could rebuild your structure this way (using the repobrowser). a bit cumbersome, but doable if your directory structure is not too complicated. i preferred this over checking out thousands of small files (several gigabytes) over slow network ...
You may use this script which will svn list the repos and create the structure in a directory.
usage:
perl checkout-structure.pl repos destdir
repos must not be the root of your repos, it can also precise a directory.
Fails to create dirs containing accentuated caracters (àéîùç...), but works fine with spaces. For these who have time for that, I think it's an encoding problem.
checkout-structure.pl:
There is a python script in the contrib tools of subversion, which creates the directory structure with empty files. With a little bit of python knowledge, it should not be to hard to skip creating the files at all.
SVN can't do that per se, but if you just want to export directory structure, try
svn ls -R --xml
to get XML listing of the directory structure and then recreate it by hand.