From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Re: emacs + subversion + newbie = trouble ?? Date: Wed, 21 Mar 2007 12:57:48 -0400 Message-ID: <1174496268.3033.44.camel@CASE> References: <878xdq5zv5.fsf@pdrechsler.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174496556 13576 80.91.229.12 (21 Mar 2007 17:02:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 17:02:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Patrick Drechsler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 18:02:29 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 1HU4Ch-0007OE-Oz for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2007 18:02:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU4EO-0002R7-Hl for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2007 12:04:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HU4An-00017d-Gm for help-gnu-emacs@gnu.org; Wed, 21 Mar 2007 13:00:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HU4Al-00011b-2v for help-gnu-emacs@gnu.org; Wed, 21 Mar 2007 13:00:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HU4Aj-00011A-VL for help-gnu-emacs@gnu.org; Wed, 21 Mar 2007 12:00:26 -0500 Original-Received: from smtp102.rog.mail.re2.yahoo.com ([206.190.36.80]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HU492-00053L-5J for help-gnu-emacs@gnu.org; Wed, 21 Mar 2007 12:58:40 -0400 Original-Received: (qmail 89079 invoked from network); 21 Mar 2007 16:58:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-YMail-OSG:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=VsheZgeuCkZVafStZ3beJnYVYKxRVVTNOV9dAWVii0aM5HT/QEoNbzKJN0/g0Wd9mJHfpYVLgIkh8qtwr7pLCdRgHyiDwTs5ue9fJbzpVIWFbIGJTr1hPZDb2gdLKTt4+zzmc1afcnNJKMq7bXsAE2CG98S34myQ0m3jB4HIfrE= ; Original-Received: from unknown (HELO ?192.168.1.4?) (billlinux@rogers.com@74.104.100.126 with plain) by smtp102.rog.mail.re2.yahoo.com with SMTP; 21 Mar 2007 16:58:38 -0000 X-YMail-OSG: EYznv58VM1moTg1I7ijq2iIxK2pc.kkwjtS89.S61I6ySmy9tTrG2MYBTLsg2yrHbw-- In-Reply-To: <878xdq5zv5.fsf@pdrechsler.de> X-Mailer: Evolution 2.8.3 (2.8.3-1.fc6) X-detected-kernel: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:42078 Archived-At: Thanks Patrick: That's all I needed. I see were it is going and what I have to do. If something doesn't work for me, at least I have an idea of where to look. I sincerely appreciate the time you took to answer my question. Sorry for the top posting but there wasn't a "thank you" reference point in the text of the message. On Wed, 2007-03-21 at 17:24 +0100, Patrick Drechsler wrote: > 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 -- Regards Bill