From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrick Drechsler Newsgroups: gmane.emacs.help Subject: Re: emacs + subversion + newbie = trouble ?? Date: Wed, 21 Mar 2007 17:24:14 +0100 Organization: none Message-ID: <878xdq5zv5.fsf@pdrechsler.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174495147 7491 80.91.229.12 (21 Mar 2007 16:39:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 16:39:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 17:39:00 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HU3pm-0004Ym-Kl for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2007 17:38:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU3rT-0007P7-6R for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2007 11:40:31 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!feeder.news-service.com!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!nhp.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:4kRnohz52hi2G98z0xkM2dqD9Mw= Original-Lines: 80 Original-NNTP-Posting-Date: 21 Mar 2007 17:24:15 CET Original-NNTP-Posting-Host: d4fd2fb0.newsspool4.arcor-online.net Original-X-Trace: DXC=QZe2[e8f91o_0Po7BmQ3]l4IUK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42077 Archived-At: William Case writes: > I want to use emacs as my text editor with subversion. How do I set it > up and get started? What has to be in my ~/.emacs, what mode am I > looking for? > > I think I have done my due diligence with subversion tutorials, > emacswiki, emacs info, man etc. yet I find myself sitting here looking > at a blank emacs frame, scratching my head and saying to myself "What > button do I push first?". > > So, please, someone help me at the most basic level get started using > subversion + emacs . I normally do the initial import and first checkout from the command line. Here is a short instruction (just replace all ssh stuff with file:// if your server and client are on the same machine): ,---- | *** Setting up a SVN repository and importing files: | | Example of putting my "texmf-local" tree under svn (replace the term | "texmf-local" with your directory of choice): | | 1. Create a SVN repository: i.e. on server (=golem): | :cd /media/data1/mysvn_reps | :mkdir texmf_local | :cd texmf_local | :svnadmin create /media/data1/mysvn_reps/texmf_local | Now the following directories and files will be created: | :conf dav db format hooks locks README.txt | 2. Make a copy of original: | :cd /usr/local/texlive | :cp -rf texmf-local texmf-local.original | 3. Delete original: | :rm -rf texmf-local | 4. Create svn directories (on client): | :mkdir -p texmf-local/branches | :mkdir -p texmf-local/tags | :mkdir -p texmf-local/trunk | 5. Copy original to trunk: | :cp -rf texmf-local.original/* texmf-local/trunk/ | 6. Import your repository from client (=trurl) to server (=golem); this | might take a while: | :cd texmf-local | :svn import /usr/local/texlive/texmf-local svn+ssh://patrick@golem/media/data1/mysvn_reps/texmf-local -m "initial import" | 7. Remove the original: | :cd .. | :rm -rf texmf-local | 8. Checkout the complete repository type: | :svn checkout svn+ssh://patrick@golem/media/data1/mysvn_reps/texmf-local/trunk texmf-local `---- Once you have a working copy and open a file with emacs you'll see a SVN version number in emacs modeline. ,---- | Emacs interface to svn (VC-mode): | | - `C-x v v': take appropriate action (ie update) | - `C-x v d': open dired buffer in VC-mode `---- You'll find further usefull info in the Emacs help. Entering: C-h i d m Emacs RET m Version TAB RET brings you here: (info "(emacs)Version Control") HTH Patrick -- The shortest unit of time in the universe is the New York Second, defined as the period of time between the traffic lights turning green and the cab behind you honking. -- Terry Pratchett 'Lords and Ladies'