Share

Updated: October 6th, 2009

12 Responses to “How To Properly Set SVN svn:externals Property In SVN Command Line”

    10 Comments:
  1. grundic says:

    Also you can't set property if you don't have a local working copy. If folder is tooo big to checkout completely you can run this command:

    svn co svn://branck/blah -N

    So easy, but I also spend lot of time figuring this out. Hope, this helps.

  2. Eric Marden says:

    If you have your SVN_EDITOR set in your .bash_profile (i.e. export SVN_EDITOR=/usr/bin/vi), you can do this a lot easier with this command (run from inside the dir you want to create the external link in):

    svn pe svn:externals .

    This will open up your editor, and allow you to easily manage the "foldername http://repos/path" entries from a much nicer interface.

    I use svn:externals so much I set up a bash alias that shortens the command even further to just: svnext

    In fact, I've got a whole library of little svn shortcuts set up as aliases in .bash_profile that make working with svn on the command line easier and more powerful than any GUI.

  3. pbgswd says:

    I dont know all Eric's tricks but I really like the what you can do with these techniques. Its a huge huge huuuuuge labor saver.

    I worked out the process for pulling WordPress core and plugins and themes in one script.

    http://www.superwebdeveloper.com/2009/11/07/installation-script-using-wordpress-subversion-repositories/

  4. JustAnotherDude says:

    Also, every page says "you can even specify a specific revision", but few actually give an example of the syntax for referencing a specific revision.

    Augmenting the example above you do it like this:

    svn propset svn:externals 'akismet -r 22 http://plugins.svn.wordpress.org/akismet/trunk' .

    Notice the "-r 22" where 22 is the desired revision number.

  5. Gareth says:

    Hey, thanks this helped out quite a bit I ended up doing it slightly differently but got it working which is the main point.

    Regards

  6. Diego says:

    How can I commit different externals on their own repo?
    Thanks

  7. GRAQ says:

    Thanks Artem!

    Am creating an install routine for Wordpress builds, loading public and private plugins and themes. Perfect.

  8. Kalle says:

    *love* <– this is all I wanted to say, really, for you saving my ass on an increasingly frustrated "gaah" moment of trying to propset the svn:externals deal, but I got a "comment too short" whine at me. Bah :)

  9. 2 Pings:
  10. [...] Originally posted here: How To Properly Set SVN svn:externals Property In SVN Command Line … [...]

  11. [...] or even specific revisionsif you want the bias more to stability over new features. You can also specify multiple remote repositories by creating a text file with directory and remote resource pai…s and point svn propset at that file. Be prepared to handle things that you flub up using svn [...]

Leave a Reply

Connect with Facebook