Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a local copy of the latest version of wordpress that I set up using

svn co http://core.svn.wordpress.org/trunk/

There is a diff that I want to pull into my local fileset:

http://core.trac.wordpress.org/attachment/ticket/19371/19371.diff

Is this something that I can do with subversion? What commands do I need to use?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

The command you need is patch which is not specific to SVN. It's really easy to do. See this article: http://jungels.net/articles/diff-patch-ten-minutes.html

share|improve this answer
add comment

Change to the directory, download the patch (.diff file), then apply it using the patch command:

cd /var/www/wp-includes/ #use your wp-includes directory here
wget http://core.trac.wordpress.org/raw-attachment/ticket/19416/19416.diff
patch class-wp-admin-bar.php < 19416.diff

Check that it worked ok and then remove the 19416.diff file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.