Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How to contribute a patch
Hello, I want to send a patch to textpattern (it’s really just an outdated file in the multi-site installation).
What is the “official” method to contribute:
- Send a diff file to one of the members of the subversion repository
- Clone and pull request to github repository
- ??
Thanks
Offline
Re: How to contribute a patch
Former. As we still are using the SVN and Google Code (while I believe we should migrate to git) the workflow is:
- Checkout the SVN repository.
- Do your alterations.
- Create diff:
svn diff > my_feature_name_r12345.patch
where12345
is the revision you modified. - Create a new issue and attach the patch to it.
Offline
Re: How to contribute a patch
Funnily enough, there’s currently a discussion about Textpattern using GitHub here
I’d be very happy for the project to move to git, and to GitHub. So would a quite few of our users by the sounds of it.
Offline
Offline
Re: How to contribute a patch
Is there a “Contribute How-To” anywhere?
A few questions are coming when browsing Google code:
- the project home tab gives two branches (dev and stable)
- the source tab gives a third one (crockery)
Which one should be chosen, and why?
And:
Gocom wrote #279479:
svn diff > my_feature_name_r12345.patch
where12345
is the revision you modified
I see that Juanjo numbered the revision r5747, but the patch was finally integrated in r5851.
How should the revision number be actually determined?
Thank you!
Offline
Re: How to contribute a patch
CeBe wrote #281936:
Is there a “Contribute How-To” anywhere?
There’s probably one on the wiki, but it’s probably out of date. Probably :-/
Which one should be chosen, and why?
If you are submitting a patch that affects the current released product, then you should submit it by sending us a diff against the stable release. If you’re patching against the next, unreleased version, then diff against the dev branch instead.
Crockery is a previous-era branch that was never officially released. Considered dead. We should probably change that example on the Google Code page!
How should the revision number be actually determined?
If you checked out r5862, your patch should contain that revision number in its filename so we know which revision to apply the patch to. If you checked out r5862 and, in the meantime before your patch is completed, some more changes came along that bumped the Google Code revision to r5864, you can either:
- merge the newer changes into your local branch (
svn update
), generate your diff patch and set its filename to have r5864 in the title, OR - don’t merge the new changes and send us the patch with the original r5862 in the title (because that was the revision you checked out and is therefore the version you worked on, and which your patch is “tested against”)
Of course, we’d prefer the first option if possible, because it’s less work for us to check out a specific revision to test your patch and then have to ‘merge forward’ to roll in any new changes since your patched revision, but if the differences aren’t too great between the two revisions or your patch is fairly simple then the second option is fine.
The actual revision number of the integrated feature when it lands in core will differ from your patch number, don’t worry about it. Just make sure your patch number matches the revision you checked out/worked on and everything will be fine… until we move to GitHub and then everything gets a shedload easier.
Hope that helps.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: How to contribute a patch
Offline
Pages: 1