b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

Using Emacs and subversion

by Clair on August 22nd, 2008

Once again I’ve been working with files that I need to access via Subversion and fortunately, I don’t need to work with the command line each time. I used to have RapidSVN or eSVN as my client for Subversion in Linux, but I think that the Emacs macro bundled in with Emacs 22 is just so nice!

First things first though, you need to check out your working copy via the command line. Once you have that already you could do this:

  1. Via dired in Emacs, view that particular directory. Then you could press “M-x svn-status” (where M is the Alt key) and you could view the list of files and the state they are in, whether they are modified (M), etc. You could also view the name of the person who last checked in the changes to that file. Once you’ve seen this view of the list of files you could
  2. If you’ve edited some files and want to start marking them for check in, go to the line with the filename you want to work with and mark it by pressing the M key (not Alt this time!) and you could unmark it by pressing the U key.
  3. You could commit the files you marked by pressing the C key. You will be prompted by making you write a log message/commit message. When you’re done, hit C-c C-c (Control-C-Control-C) and then press the Shift-U to update your list of files so that they will be committed into the Subversion repository.
  4. There are actually more commands that you could call via the menu. If you’re on Gnome-Emacs, you could see a dropdown menu under the SVN menu. :) So you don’t have to remember everything I just wrote here.

You could do all these and more in Emacs! But I am really always amazed anyhow as to how cool it is. :D

POSTED IN: General

0 opinions for Using Emacs and subversion

  • No one has left a comment yet. You know what this means, right? You could be first!

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing