If the "#DoPatch" command is the sole word on the first line of a wiki page, then after the 4 day veto period has elapsed, SPW will apply as a patch whatever is in between the first pair of <nowiki><pre></pre></nowiki> tags on that page. (SPW does this stuff when an "action=maintain" is called, which is done periodically). SPW will apply the patch file with the command <code>/usr/bin/patch -d/ -p0 <your_patch_file</code> An example of using DoPatch can be found in SpwTutorial. == More info == So, to use DoPatch: 1. Create a wiki page on SPW. At the top, on the first line, put "<code> #DoPatch</code>". Then, somewhere afterwards, put <nowiki><pre>my_patch</pre></nowiki>. That is to say, in a text editor on your computer, copy the contents of your patch file (<code>my_patch</code> in the example) and paste it into the wiki page, in between <nowiki><pre></nowiki> tags. Note that the <code>patch</code> command is picky about tabs and newlines, so make sure there is a newline at the end (i.e. the final <nowiki><pre></nowiki> tag should be on its own line, below everything else) and that the tabs don't get screwed up. Also, however, put an extra newline at the start (so that the actual start of the patch is not on the same line as the <nowiki><pre></nowiki>). 2. Wait for the veto period to end. When the page you created has been standing for 4 days without any changes, whatever is in between the <nowiki><pre></pre></nowiki> tags will be applied. SPW will make an entry in RecentChanges with UserName "SPW" and summary "EXECUTED PATCH COMMAND". It will change the "#DoPatch" on the page to "#DidPatch", and will append the results of the <code>patch</code> command. ---- CategoryDocumentation
Summary:
This change is a minor edit.
To save this page you must answer this question:
What is the second letter of this question?
Username: