Making quilt and subversion work together

At work, I’ve recently taken up managing the codebase of GridSAM. Part of this involved arranging and moving a whole load of patches from one svn repository (maintained internally) to another (the SourceForge site). Subversion on its own isn’t all that good at this, so I started using quilt to manage the patches. The workflow goes something like this:

Now, this is all well and good, except that in that last step, you have to fiddle with the internals of quilt so that the patch is no longer in the quilt stack. Ideally, I want to shift the bottom patch off the quilt stack after you’ve applied it into the subversion repository. Even better, I’d like to be able to do all of the above work with a single command.

I’ve therefore written a quilt svn command that does just that. Download it, put it in /usr/share/quilt/ (or wherever your quilt install is), and then:

If you want to apply several patches, you can give either the number of patches to apply: