[…] HowTo für OSX Auf dem Circle Six Blog ist mal wieder eine interessante Artikelserie zu Ende gegangen. Dort wurde Schritt-für-Schritt die […]
The TextMate Subversion Bundle
This post is part of a series (Subversion Series):
Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information.
The following links are auto-generated but may help you locate newer content:
Now that you’ve got Subversion working and have a basic understanding of the command line, I’ll show you how I make life a little easier for myself. I experimented with a few graphical clients but actually found working with the TextMate Subversion Bundle to be the easiest way to go. If you need to update your bundle, see the instructions below, otherwise, jump to the second section!
Checking Out the Bundle
It’s been brought to my attention that the Subversion bundle is included with TextMate. The following instructions are left for people that want to update their bundle, but should not be necessary to use the bundle. Sorry for any confusion!
If you already have a TextMate subversion checkout, you can skip the first couple of steps and just change to your bundles directory in your checkout. If not, lets go ahead and create the directory structure. So quit TextMate and from Terminal (or iTerm…):
If you’re using bash:
export LC_CTYPE=en_US.UTF-8
If your using tcsh or zsh:
setenv LC_CTYPE en_US.UTF-8
You may want to put these lines into your ~/.bash_profile, ~/.tcshrc or ~/.zshrc file, depending on your shell.
Now to check out the bundle. For more information on this, see the Bundles section of the manual, or the Subversion Checkout section of the Wiki.
mkdir -p /Library/Application Support/TextMate/Bundles
cd /Library/Application Support/TextMate/Bundles
svn co http://macromates.com/svn/Bundles/trunk/Bundles/Subversion.tmbundle
You can update this bundle, and any other bundles you’ve checked out in this manner at any time by typing:
cd /Library/Application Support/TextMate/Bundles
svn up *.tmbundle
It’s a good idea to keep track of changes to the bundles, which you can do using the RSS feed for Bundle Changes.
Using the Bundle
It’s easiest to work in a project. Open up the entire site or just a directory by typing mate [dir] at the command line. This assumes, of course, that you’ve installed the command line tool. Once you’ve got the project open, and assuming it’s a working copy of a Subversion repository, you can test out the Subversion bundle by opening a file, selecting the root directory of the project, and typing ⌃-⇧-A. Select “status” from the pop-up menu and you should be presented with an HTML output showing the result of the svn status command for the directory. It may be empty if you’ve already committed all recent changes.
Now you can edit and add new files to the project, check the status and then use ⌃-⇧-A to check the status. When you’re ready to commit, select the root directory, pull up the Subversion menu and select “Commit” (5). It will ask you for a commit message, which you should always add despite the fact that it will allow you to leave it blank. Pressing the Commit button will then handle the transfer and give you the new Revision number. You can also commit a single file, directory or file selection from the project drawer.
The menu contains commands for running diffs, reverting files, and if you have the proper utilities installed, merging with FileMerge.
If you’ve got a basic grasp on Subversion, exploring the bundle should be pretty simple. 
-
04.18.07 / 8am
-
04.18.07 / 9am
First you’ll need to get the bundle
Curious, how did you arrive at this conclusion? The Subversion bundle is included by default with TextMate. There are no special steps required to install or activate it unless you intend to contribute changes to the bundle.
-
04.18.07 / 9am
I really like the SVN bundle. I was looking for a decent SVN client for Mac OS X, and while there are quite a few, I found that the bundle fulfils most SVN needs I have. The rest I’m doing from the command line.
By the way: AFAIK The Subversion bundle is already included in the default bundles coming with TextMate. So using GetBundle or direct Subversion checkout is more a way to stay on the edge.
-
04.18.07 / 9am
My mistake. I have a full checkout of all the bundles and assumed that that was how I had gotten it. I’ll amend the post to correct that. Thanks for letting me know.
-
04.18.07 / 12pm
I found that when I checkout my repository directly from TextMate, the TM SVN bundle will ask me every time for the location of the repository.
Is there a way how I can define a default location so that it will no longer ask?!
-
04.18.07 / 12pm
How often do you need to check out the sources?
The general assumption with Subversion is that you’ll check out a new working copy infrequently, and almost never the same location. But we can add a default location, or, perhaps better, a cache of previously used locations, if needed.
-
01.13.08 / 12pm
[…] Das Textmate Bundle gibt es meines Erachtens standardmässig bei Textmate dabei, eine kleine Anleitung (schon ein paar Tage auf dem Buckel) gibt es bei Circle Six Design. […]
Have your say
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
7 Comments
Jump to comment form | comments rss [?] | trackback uri [?]