Hello everyone, I've been working on a library for subversion support within Pd. I thought I'd upload the first working alpha to get some feedback, since I'd like everyone to be happy with how it operates.
The basic idea is that you spawn [pdsvn] inside the patch you're working on. It acts as a svn status indicator as well as a control center for svn operations upon that patch. So, if the patch is unversioned, it will let you add it to the repository, then commit (asking for a log message on the way). If it's already versioned, it will let you diff changes to your working copy to the Pd Console, as well as commit those changes.
A version that works on directories rather than individual patches is planned.
It's a bit tricky, since I'm using a modified version of Jamie Bullock's [getpatchname] that lets me get the filename of the parent patch (so that [pdsvn] knows what patch it's living in). I've included the source for that as well as binaries for PPC and Intel OS X.
Besides that, it needs zexy, toxy (for detecting when a patch is saved, thanks HCS for pointing that out) and [popen]. A nonblocking version would need [shell], but [shell] is horribly unstable (as I learned while attempting to use it for this). Pd 0.40 and up.
Cheers Luke
(oh, clicking the SVN logo will refresh the status, but I'm trying to make it detect most changes that would require a refresh.)
Luke Iannini (pd) wrote:
I've been working on a library for subversion support within Pd. I thought I'd upload the first working alpha to get some feedback, since I'd like everyone to be happy with how it operates.
<snip>
I am interested in checking this out, but the archive that you attached to your original message appears to be incomplete. The only source it includes is the code for [getpatchname].
-- Russell Bryant
I am interested in checking this out, but the archive that you attached to your original message appears to be incomplete. The only source it includes is the code for [getpatchname].
Hi Russell, That's as intended, my definition of "library" includes pd patches : ).
"pdsvn.pd" is the main focus, and the getpatchname source is just necessary since it is modified from the original. The other libraries I mention are available in Pd-Extended.
Cheers Luke
On Mon, Dec 17, 2007 at 10:44:13PM -0800, Luke Iannini (pd) wrote:
Hello everyone, I've been working on a library for subversion support within Pd. I thought I'd upload the first working alpha to get some feedback, since I'd like everyone to be happy with how it operates.
The basic idea is that you spawn [pdsvn] inside the patch you're working on. It acts as a svn status indicator as well as a control center for svn operations upon that patch. So, if the patch is unversioned, it will let you add it to the repository, then commit (asking for a log message on the way). If it's already versioned, it will let you diff changes to your working copy to the Pd Console, as well as commit those changes.
Great, this anables patches to be uploadeble from within themselves !
but is there an svn repository ..? the main one runs cvs (at sf.net) ..
which one are you using Luke ?
Great, this anables patches to be uploadeble from within themselves !
but is there an svn repository ..? the main one runs cvs (at sf.net) ..
which one are you using Luke ?
Hi error, The svn repository is my own. But I wrote this also in preparation (and encouragement) for the finally-happening transition of the sf.net repo, hurray!
Cheers Luke