Questions tagged [svn-externals]

svn:externals allow a part of an external Subversion repository to be checked out within another working copy, by setting the svn:externals property on a directory in that working copy.

Externals Definitions (svn:externals SVN property) help you to construct a working copy that is made out of a number of different checkouts.

An externals definition is a mapping of a local directory to the URL — and ideally a particular revision — of a versioned directory. In Subversion, you declare externals definitions in groups using the svn:externals property.

The convenience of the svn:externals property is that once it is set on a versioned directory, everyone who checks out a working copy with that directory also gets the benefit of the externals definition. In other words, once one person has made the effort to define the nested working copy structure, no one else has to bother — Subversion will, after checking out the original working copy, automatically also check out the external working copies.

Reference:

254 questions
3
votes
3 answers

Replicating svn:externals into a git repository (Referencing git from Subversion)

We have a Subversion repository that is not going to move to git in the short to medium term, but I would like to use a DVCS for controlling and versioning 3rd party libraries. Is there a way of using something like svn:externals to fetch/link a…
Simon Featherstone
  • 1,716
  • 23
  • 40
3
votes
0 answers

Subversion repository becomes corrupt when setting externals via script

I have an automated script (written in KSH) that sets SVN externals for folders within a repository. When I run this script it does the following: Check-outs part of a repository fully. Then, loops through a file with all the Subversion properties…
hrocafella
  • 31
  • 3
3
votes
1 answer

svn update over-write existing non-versioned files

I'm trying to put our site under full version control. The site and files currently exists on the server and I need to replace those non-versioned files with a versioned copy without deleting the directories or files. I tried using svn checkout…
brucemartin
  • 317
  • 1
  • 5
  • 15
3
votes
1 answer

svnversion output but recursive over externals

I am trying to identify local (not automated build server) builds of SVN projects with externals (and sub-externals) by their URL, revision, and dirty/clean status. The overall result will simply be all clean or something somewhere is dirty, I do…
altendky
  • 4,176
  • 4
  • 29
  • 39
3
votes
3 answers

TortoiseSVN: Why can't I add an external (project) to the ROOT of my working copy?

Quick Summary: I'm new to SVN and need some help with externals. I'm trying to add a separate project to the root of my local working copy, but TortoiseSVN only lets me set the externals property to a subfolder. Details: I found a set of scripts…
3
votes
2 answers

SVN post-commit hook to modify externals

We have a Subversion setup that makes fairly extensive use of svn:externals (more than 5 external references in one project, and while most are in the same repository, one or two are in a different repository but still on the same server).…
Ruslan
  • 2,691
  • 1
  • 19
  • 29
3
votes
1 answer

SVN - Committing externals on commit of main trunk

Short and sweet: I have one project with an external, which allows me to commit changes to files in that external alongside changes to the main trunk in one operation: I have another project with an external, which does not allow me to commit…
KeithS
  • 70,210
  • 21
  • 112
  • 164
3
votes
1 answer

Why is git svn show-ignore / show-externals so slow?

I'm in the process of writing a general-purpose svn -> git migration script, which allows for a lot more than the standard git svn clone, and during one stage of my script I'm checking the output of git svn show-externals and git svn show-ignore for…
majackson
  • 2,823
  • 6
  • 22
  • 38
2
votes
1 answer

Is this a good approach for managing common libraries?

We need to find a sensible way to manage our in-house .NET libraries that could be potentially reused by multiple projects. Googling and thinking about the issue for a few hours led me to following conclusion which I'd like to go forward with: There…
Nikola Anusev
  • 6,940
  • 1
  • 30
  • 46
2
votes
2 answers

How to nest Git Submodules within Submodules?

I've done a fair bit of searching on this but none of the results quite hit the nail on the head. $ mkdir blah $ git init $ git submodule add -b 7.x http://git.drupal.org/project/drupal.git drupal $ git submodule add -b 7.x-1.x…
Nick
  • 2,803
  • 1
  • 39
  • 59
2
votes
1 answer

Quick way to rename server url of all svn:externals?

I realize that as of SVN 1.5 you are able to use relative paths for externals, but is there a quick solution to modify all externals recursively for those who did not utilize this option? We recently moved our repository over to a new server, and we…
John Leehey
  • 22,052
  • 8
  • 61
  • 88
2
votes
1 answer

Does svn:externals accept relative paths?

I have SVN download automatically some projects from another part of the trunk to my current trunk location - i.e. sharing projects with SVN:Externals. But I have it hard coded currently like so MS.Utils…
Martin
  • 23,844
  • 55
  • 201
  • 327
2
votes
0 answers

svn: externals history with parent repository in redmine

Setting ups some bug tracking with Redmine and svn. We have one app which has a collection of smaller apps within that are stored in different svn repos, so we have svn: externals controlling the group of them into one checkout. This also allows us…
Joshua Fricke
  • 381
  • 3
  • 14
2
votes
2 answers

Script/utility to rewrite all svn:externals in repository trunk

Say that one wishes to convert all absolute svn:externals URLS to relative URLS throughout their repository. Alternatively, if heeding the tip in the svn:externals docs ("You should seriously consider using explicit revision numbers..."), one might…
kostmo
  • 6,222
  • 4
  • 40
  • 51
2
votes
1 answer

Is there any way to help avoid accidental commits to svn:externals in TortoiseSVN?

I am on a development team with some members who have accidentally committed changes to svn:externals. If the externals in question are from a different repo, they get handled better in TortoiseSVN, with a clear visual separation in TortoiseSVN (see…
Jason S
  • 184,598
  • 164
  • 608
  • 970