5

Is it possible to ignore the commit of externals in SVN?

Example:

I have a project and one of the subfolders is an external:

svn:externals
my_remote_folder http://svn.whatever.org/blah/trunk/

This works seamlessly. Always when I perform an update, the externals get updated as well.

But when I change anything in the local checkout of this external my IDE recognizes the change and offers me the file to commit. But maybe I have just read-access to the external SVN.

I tried to ignore the folder conventionally:

svn:ignore
my_remote_folder

I also tried

my_remote_folder .

But my IDE (PhpStorm) and also TortoiseSVN still ignore this ignore.

1 Answer 1

6

The answer highly depends on which client you use.

  • Command Line Client: by default, the command line client does not include externals during commits. From the SVN book:

    [...] if you want to commit changes that you've made in one or more of those external working copies, you must run svn commit explicitly on those working copies — committing on the primary working copy will not recurse into any external ones.

  • TortoiseSVN: In the commit dialogue, you can easily deselect files from externals: TSVN Commit Dialogue

  • PhpStorm: I cannot tell here, since I don't know the IDE personally.

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks! PhpStorm doesn't provide such a checkbox. You have to disable changed files in externals manually, if you don't want to commit them.
For TortoiseSVN, it doesn't work if externals are on the same repository
If someone also experiences a disabled "Show externals from different repositories" check box (just like in the above screenshot), Stefan Küng suggests to change the timeout to zero (or one). Unfortunately this seems to not work on my system, but maybe it is some help to others. He suggests: 1. Settings Dialog → Dialogs 2. 2. Set the "Timeout in seconds to stop the auto-completion parsing" to zero. Seems the regex is choking on one of your files.
@UweKeim, I have the exact same issue as the screenshot: grayed out checkbox. Anyone else has an idea about that?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.