all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs + subversion + newbie = trouble ??
@ 2007-03-21 15:51 William Case
  0 siblings, 0 replies; 4+ messages in thread
From: William Case @ 2007-03-21 15:51 UTC (permalink / raw)
  To: EMACS List

Hi;

I am not a student.  I am a newbie to 'subversion' or any other version
control system.  I am also at rudimentary level of emacs but been at it
longer than subversion.  Like all things 'computer', getting started
with the simple opening commands is the hard part.  Once I get going I
am OK.  

Enough of the apologia!

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 .

-- 
Regards Bill

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs + subversion + newbie = trouble ??
       [not found] <mailman.1206.1174492465.7795.help-gnu-emacs@gnu.org>
@ 2007-03-21 16:24 ` Patrick Drechsler
  2007-03-21 16:57   ` William Case
  2007-03-21 18:30   ` Petter Gustad
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick Drechsler @ 2007-03-21 16:24 UTC (permalink / raw)
  To: help-gnu-emacs

William Case <billlinux@rogers.com> 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'

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs + subversion + newbie = trouble ??
  2007-03-21 16:24 ` emacs + subversion + newbie = trouble ?? Patrick Drechsler
@ 2007-03-21 16:57   ` William Case
  2007-03-21 18:30   ` Petter Gustad
  1 sibling, 0 replies; 4+ messages in thread
From: William Case @ 2007-03-21 16:57 UTC (permalink / raw)
  To: Patrick Drechsler; +Cc: help-gnu-emacs

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 <billlinux@rogers.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: emacs + subversion + newbie = trouble ??
  2007-03-21 16:24 ` emacs + subversion + newbie = trouble ?? Patrick Drechsler
  2007-03-21 16:57   ` William Case
@ 2007-03-21 18:30   ` Petter Gustad
  1 sibling, 0 replies; 4+ messages in thread
From: Petter Gustad @ 2007-03-21 18:30 UTC (permalink / raw)
  To: help-gnu-emacs

Patrick Drechsler <patrick@pdrechsler.de> writes:

> | 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

I find the subversion mode (i.e. M-x svn-status) very useful. This is
similar to dired and you can mark several files and commit all of them
in a single atomic operation. You can do logs, updates, add, proplsit
etc.

Petter

-- 
________________________________________________________________________
Petter Gustad         8'h2B | ~8'h2B        http://www.gustad.com/petter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-21 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1206.1174492465.7795.help-gnu-emacs@gnu.org>
2007-03-21 16:24 ` emacs + subversion + newbie = trouble ?? Patrick Drechsler
2007-03-21 16:57   ` William Case
2007-03-21 18:30   ` Petter Gustad
2007-03-21 15:51 William Case

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.