On Wed, 2007-05-16 at 15:49 +0200, Daniel Miksik wrote:
> Hello everybody,
> I have a simple question. If I would like to apply a fix from the
> trunk (e.g. http://trac.edgewall.org/changeset/5404) -- without
> upgrading my whole installation of Trac -- what exactly should I do?
> Thanks for any pointers or instructions (I've done some searching but
> have had the impression nothing answers my question specifically
> enough). ;)
I use quilt[1] for this task. Quilt lets you manage a stack of patches
against a source tree. The basic idea is this:
1. Unpack the source tree
2. use quilt to import, apply, and refresh the patch from trunk (or
branch, or wherever)
3. use quilt to create another patch to set the trac version number
to reflect your patch
In a source tree, 'quilt import' imports a patch. 'quilt push' applies
a patch, 'quilt pop' unapplies one. With the patch you want to apply
pushed, you can do 'quilt new local-version' to create a new patch for
versioning, and 'quilt edit setup.py' to edit the setup.py file and add
a new version number (I did 0.10.3+sclfixes, as it was 0.10.3 plus the
fixes applied at SCL). Strictly speaking, the version number isn't
mandatory, but I find it to be a good idea.
If you use Google a bit, you can find a good paper from the SuSE/Novell
folks on managing patches with quilt.
quilt keeps all its patches in a directory called 'patches'. You can
keep this directory under some kind of version control if you wish, to
manage various patches you wish to apply.
Prior to 0.10.4 I was using this system to manage our locally patched
Trac (0.10.4 included the patch we needed, so it's moot now), and it
worked quite well.
- Michael
1. http://savannah.nongnu.org/projects/quilt/
--
Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:
http://www.scl.ameslab.gov/Projects/Monitor/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---