Can we set a single file as external in Subversion?
相关问题
- What is the best way to do a search in a large fil
- Spring Integration - Inbound file endpoint. How to
- How can I set the SVN password with Emacs 23.1 bui
- php--glob for searching directories and .jpg only
- If statements in .htaccess files, to enable passwo
相关文章
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- Is there a version control system abstraction for
- Intermittent “SVNException: svn: E175002: Connecti
- IntelliJ Subversion Authentication Required Dialog
- TortoiseHG and hgsubversion (Windows): “no module
- How to serialize data into indented json [duplicat
- Incompatible JavaHl library loaded
Yes, it's possible with svn 1.6. It's documented in the nightly build version of the svn book.
But even though file externals are working, you should only do it with text files (for now) because binary files won't work correctly as file externals.
I couldn't find a good example about how to create a svn file external. So I am providing an example here so it can be useful for others.
The format is
For e.g. following command
will create the file https://myserver/my/svn/location/my_sample_file.cfg.template under
my_folder
asmy.cfg
. Here obviously, I assume you already have the foldermy_folder
under your current directory which is under svn.For SVN 1.9.4 the syntax is like folder's one:
E.g., this will create file
local.txt
in the current directory referencing tofile.txt
:As mentioned in the first answer, SVN Externals are documented in Chapter 3 of the SVN Book, and quite a few syntax examples are given there.
In addition, this note is given:
In my experience testing Tortoise SVN v1.9.6 and svn.exe v1.9.5, the results are as-documented.
This leads to a clumsy workaround. If you control both repos, you can clone an individual file into its own folder in the source repo (by Externals of a single file WITHIN a repo), and then Externals it across repo borders into the target repo by bringing in its entire folder, which contains only a single file.
Docs for doing this with the Tortoise SVN client are on tortoisesvn.net.