User login

Applying a patch to Drupal CVS checkout

Searched words: 
patch patching testing cvs

Applying a patch.

You can just use the link to the patch from the issue queue (in this example, in a post by galapas to my usability request) to fetch the patch directly with wget:

ben@server:/var/www/drupal6$ sudo wget http://drupal.org/files/issues/system-admin-inc.193034.patch

Then apply the patch:

ben@server:/var/www/drupal6$ sudo patch -p0 < system-admin-inc.193034.patch

Didn't like it much, so reversed it:

ben@server:/var/www/drupal6$ sudo patch -p0 -R < system-admin-inc.193034.patch

and got the alternatives supplied by the same amazing galapas:

ben@server:/var/www/drupal6$ sudo wget http://drupal.org/files/issues/system-module.193034-alt.patch

ben@server:/var/www/drupal6$ sudo wget http://drupal.org/files/issues/system-admin-inc.193034-alt.patch

All this followed setting up a test environment, which had been done like so:

ben@server:/var/www$ sudo cvs -z9 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout -d drupal6 drupal

Edited an apache sites-available file to point at the new directory.

(In this case, I reused a database, so skipped that case)

And then made the directories writable:

/var/www/drupal6$ sudo chown www-data:www-data sites/default
and:
/var/www/drupal6$ sudo chown www-data:www-data files

Aside: can the CVS be made to checkout with the proper permissions? (Answer: permissions apparently yes, but ownership goes to root if you have to use sudo to do the checkout.)

Resolution

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.