Brian Fegter
Brian Fegter

Reputation: 701

How do I update only a specific svn external on first update?

I've successfully added the external repository and we're able to update the repo by doing a recursive update on the parent folder, and the external appears correctly.

svn up parent

However, there is development work in the parent folder that doesn't need to go up to staging/production. I'm having difficulty targeting the external only without doing a recursive update on the whole directory. It gives me a miss every time when I use

svn up -r 6 parent/external/

I appreciate any advice on making the initial update of a single external without updating the whole directory.

As a side note: the company I'm working with uses trunk with file version numbers for deployments (not ideal).

Upvotes: 2

Views: 1635

Answers (1)

malenkiy_scot
malenkiy_scot

Reputation: 16615

According to my understanding of what you've written in the comments what you are seeing is normal behavior: until the external is actually checked out you can't update it since it's not under version control, yet. svn:external property is just a directive to SVN client to check out something from another repository. Once it's done you can updated and commit it separately from the rest. There are even a command switch - --ignore-externals - that makes it easier.

Upvotes: 2

Related Questions