Cesar D. Rodas wrote: Hi, > That awesome, is there a way that you to share your work with, so I > can continue extending it. My main motivation to implement a GIT Attached is an action plugin sample which worked with mercurial over a year ago. I remember having moved the mercurial specific commands and files paths to conf[...] strings but just can't find that back, maybe I forgot to commit that :-( I tweaked the io_writeWikiPage function to help having better commit logs in the repository. -- gb
diff -r b15c5dd0c1b6 inc/common.php --- a/inc/common.php Sun Mar 16 15:15:26 2008 +0100 +++ b/inc/common.php Mon Mar 31 22:35:20 2008 +0200 @@ -854,7 +854,7 @@ io_sweepNS($id, 'mediadir'); }else{ // save file (namespace dir is created in io_writeWikiPage) - io_writeWikiPage($file, $text, $id); + io_writeWikiPage($file, $text, $id, NULL, $summary); // pre-save the revision, to keep the attic in sync $newRev = saveOldRevision($id); $del = false; diff -r b15c5dd0c1b6 inc/io.php --- a/inc/io.php Sun Mar 16 15:15:26 2008 +0100 +++ b/inc/io.php Mon Mar 31 22:35:20 2008 +0200 @@ -142,10 +142,10 @@ * * @author Ben Coburn <btcoburn@xxxxxxxxxxxxx> */ -function io_writeWikiPage($file, $content, $id, $rev=false) { +function io_writeWikiPage($file, $content, $id, $rev=false, $summary=false) { if (empty($rev)) { $rev = false; } if ($rev===false) { io_createNamespace($id); } // create namespaces as needed - $data = array(array($file, $content, false), getNS($id), noNS($id), $rev); + $data = array(array($file, $content, false), getNS($id), noNS($id), $rev, $summary); return trigger_event('IO_WIKIPAGE_WRITE', $data, '_io_writeWikiPage_action', false); }