I want to contribute some patches to the Perforce bundle, but I need to clear up some confusion first...
http://macromates.com/wiki/Bundles/HowToContribute tells me to start by checking out the latest version into ~/Library/Application Support/TextMate/Bundles. (That's where the Perforce bundle is now, which I downloaded using the GetBundle bundle.)
But http://macromates.com/textmate/manual/bundles#installing_a_bundle tells me to create /Library/Application\ Support/TextMate/Bundles/ and install them there.
Then I'm further confused by the following in http://macromates.com/wiki/Bundles/HowToContribute:
Normally it is not recommended that you checkout bundles to the above location [~/Library/..., I guess], because when you change the bundle items from inside TextMate, it saves changes to ~/Library/…, potentially leading to merge conflicts if the files are updated in an incompatible way on the server.
If you already have done a full checkout of the repository to /Library then you can instead do a symbolic link...
So what should I do? Should I check out the Perforce bundle to /Library/... or ~/Library/...? Should I ignore the instructions to create a symbolic link, since I haven't done a full checkout to /Library/...?
-- Daryl Spitzer
Hi Daryl,
I think before we offer any advice, there's one important thing we need to clear up. Have you already made changes to your copy of the Perforce bundle?
Simply put, changes that you make to a bundle via the bundle editor are written in ~/Library/..... Normally they are written as delta files, if the corresponding commands are there. If you've already done changes, then you should look at the actual files in your bundle, by opening it as a folder, and see if they are delta files (they will have a key in the XML tree with name "isDelta" if I recall.
Got to go teach now, more later or from someone else in the meantime ;)
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Mar 30, 2007, at 12:01 PM, Daryl Spitzer wrote:
I want to contribute some patches to the Perforce bundle, but I need to clear up some confusion first...
http://macromates.com/wiki/Bundles/HowToContribute tells me to start by checking out the latest version into ~/Library/Application Support/TextMate/Bundles. (That's where the Perforce bundle is now, which I downloaded using the GetBundle bundle.)
But http://macromates.com/textmate/manual/bundles#installing_a_bundle tells me to create /Library/Application\ Support/TextMate/Bundles/ and install them there.
Then I'm further confused by the following in http://macromates.com/wiki/Bundles/HowToContribute:
Normally it is not recommended that you checkout bundles to the above location [~/Library/..., I guess], because when you change the bundle items from inside TextMate, it saves changes to ~/Library/…, potentially leading to merge conflicts if the files are updated in an incompatible way on the server.
If you already have done a full checkout of the repository to / Library then you can instead do a symbolic link...
So what should I do? Should I check out the Perforce bundle to /Library/... or ~/Library/...? Should I ignore the instructions to create a symbolic link, since I haven't done a full checkout to /Library/...?
-- Daryl Spitzer
Haris,
I've only made experimental changes to my copy of the Perforce bundle. I don't mind at all blowing them away in order to set things up "properly" so I can create patches.
-- Daryl
On 3/30/07, Charilaos Skiadas skiadas@hanover.edu wrote:
Hi Daryl,
I think before we offer any advice, there's one important thing we
need to clear up. Have you already made changes to your copy of the Perforce bundle?
Simply put, changes that you make to a bundle via the bundle editor are written in ~/Library/..... Normally they are written as delta files, if the corresponding commands are there. If you've already done changes, then you should look at the actual files in your bundle, by opening it as a folder, and see if they are delta files (they will have a key in the XML tree with name "isDelta" if I recall.
Got to go teach now, more later or from someone else in the meantime ;)
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On Mar 30, 2007, at 12:01 PM, Daryl Spitzer wrote:
I want to contribute some patches to the Perforce bundle, but I need to clear up some confusion first...
http://macromates.com/wiki/Bundles/HowToContribute tells me to start by checking out the latest version into ~/Library/Application Support/TextMate/Bundles. (That's where the Perforce bundle is now, which I downloaded using the GetBundle bundle.)
But http://macromates.com/textmate/manual/bundles#installing_a_bundle tells me to create /Library/Application\ Support/TextMate/Bundles/ and install them there.
Then I'm further confused by the following in http://macromates.com/wiki/Bundles/HowToContribute:
Normally it is not recommended that you checkout bundles to the above location [~/Library/..., I guess], because when you change the bundle items from inside TextMate, it saves changes to ~/Library/…, potentially leading to merge conflicts if the files are updated in an incompatible way on the server.
If you already have done a full checkout of the repository to / Library then you can instead do a symbolic link...
So what should I do? Should I check out the Perforce bundle to /Library/... or ~/Library/...? Should I ignore the instructions to create a symbolic link, since I haven't done a full checkout to /Library/...?
-- Daryl Spitzer
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Mar 30, 2007, at 11:01 AM, Daryl Spitzer wrote:
I want to contribute some patches to the Perforce bundle, but I need to clear up some confusion first...
What I do and it works for me (might not work for anybody else): I have the TM repository checked out to /Library/Application\ Support/ TextMate.
If I want to make changes to a bundle that I know I may want to commit later, I create a symbolic link for that bundle to ~/Library, eg for a bundle named XXX
ln -s /Library/Application\ Support/TextMate/Bundles/XXX.tmbundle ~/ Library/Application\ Support/TextMate/Bundles
Then I can work on XXX from within TM, and submit it when done.
Gerd
That makes sense. I'll try that. Thanks.
Should someone update the wiki to remove the contradiction between "You should start by checking out the latest version of the bundle you want to improve into ~/Library/Application Support/TextMate/Bundles." and "Normally it is not recommended that you checkout bundles to the above location..."?
-- Daryl
On 3/30/07, Gerd Knops gerti-textmate@bitart.com wrote:
On Mar 30, 2007, at 11:01 AM, Daryl Spitzer wrote:
I want to contribute some patches to the Perforce bundle, but I need to clear up some confusion first...
What I do and it works for me (might not work for anybody else): I have the TM repository checked out to /Library/Application\ Support/ TextMate.
If I want to make changes to a bundle that I know I may want to commit later, I create a symbolic link for that bundle to ~/Library, eg for a bundle named XXX
ln -s /Library/Application\ Support/TextMate/Bundles/XXX.tmbundle ~/ Library/Application\ Support/TextMate/Bundles
Then I can work on XXX from within TM, and submit it when done.
Gerd
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Mar 30, 2007, at 7:31 PM, Daryl Spitzer wrote:
That makes sense. I'll try that. Thanks.
Should someone update the wiki to remove the contradiction between "You should start by checking out the latest version of the bundle you want to improve into ~/Library/Application Support/TextMate/Bundles." and "Normally it is not recommended that you checkout bundles to the above location..."?
Sounds like you signed yourself up for the task ;)
I second Gerd's recommendation, I think it is also the "official" recommendation.
-- Daryl
Haris Skiadas Department of Mathematics and Computer Science Hanover College
Sounds like you signed yourself up for the task ;)
No problem, but I'll make sure I understand the whole process and it works for me before I do so.
-- Daryl
On 3/30/07, Charilaos Skiadas skiadas@hanover.edu wrote:
On Mar 30, 2007, at 7:31 PM, Daryl Spitzer wrote:
That makes sense. I'll try that. Thanks.
Should someone update the wiki to remove the contradiction between "You should start by checking out the latest version of the bundle you want to improve into ~/Library/Application Support/TextMate/Bundles." and "Normally it is not recommended that you checkout bundles to the above location..."?
Sounds like you signed yourself up for the task ;)
I second Gerd's recommendation, I think it is also the "official" recommendation.
-- Daryl
Haris Skiadas Department of Mathematics and Computer Science Hanover College
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 31. Mar 2007, at 01:31, Daryl Spitzer wrote:
That makes sense. I'll try that. Thanks.
Should someone update the wiki to remove the contradiction between "You should start by checking out the latest version of the bundle you want to improve into ~/Library/Application Support/TextMate/Bundles." and "Normally it is not recommended that you checkout bundles to the above location..."?
Here is what the writings are supposed to convey:
In the Manual =============
You should not checkout to ~/Library because: a) you’ll likely get merge conflicts if you modify an item and this one is later updated b) you can’t easily remove the full checkout (because it is intermixed with your stuff) if placed in ~/Library
Contributing ============
Here you do not want delta files, thus the bundle you want to edit must seem as it is in ~/Library, either by checking it out directly to ~/Library or creating a symbolic link -- so you should checkout the bundle (as the manual says), but *unlike* the manual, which says you should not do it to ~/Library, it is perfectly fine to checkout to ~/Library (alternatively create the symbolic link from ~/Library to where you checked out the bundle, i.e. /Library).
Did that make it clearer? The text on the wiki is correct, but maybe it is not clear. So please do feel free to clarify it.
On 3/30/07, Gerd Knops gerti-textmate@bitart.com wrote:
On Mar 30, 2007, at 11:01 AM, Daryl Spitzer wrote:
I want to contribute some patches to the Perforce bundle, but I
need
to clear up some confusion first...
What I do and it works for me (might not work for anybody else): I have the TM repository checked out to /Library/Application\ Support/ TextMate.
If I want to make changes to a bundle that I know I may want to commit later, I create a symbolic link for that bundle to ~/Library, eg for a bundle named XXX
ln -s /Library/Application\ Support/TextMate/Bundles/XXX.tmbundle ~/ Library/Application\ Support/TextMate/Bundles
Then I can work on XXX from within TM, and submit it when done.
Gerd
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate