[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Simple revision control for working copy

From: Ted Dennison <dennison_at_ssd.fsi.com>
Date: 2006-09-25 17:33:52 CEST

Tonio wrote:
> I don't want/need to save all these little changes to
> the repository each time, but it would be useful to
> have a local revision control "cache" for all these
> little changes, which I might want to revert to, or
> copy some code from.
>
VMS used to keep all your old versions of edited files (up to a
user-specified limit) with an extra ";#" appended on the end of the
filename for just this reason. I recently discovered that Emacs has this
functionality, except it uses a ".~#~" extension.

Sadly, I enabled it through the WIMP interface, but I think the .emacs
commands for it are:

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
'(kept-new-versions 5)
 '(kept-old-versions 5))

As you can see from the comment, you need to be careful about doing this
outside of the WIMP interface. :-)

Since Emacs has infinite undo to the last save, I haven't needed to use
this feature to restore old edits a lot. However, its quite handy when
you do need it.

This essentially gives you 3 levels of "cache" for file versions:
Undo/Redo for unsaved edits, your ".~#~" files for saved but uncommitted
edits, and your repository for committed edits.

I don't know about support for this kind of thing in other editors, but
any serious programmer's editor should support the majority of Emacs'
text editing features (or they really shouldn't have bothered developing
it). If yours doesn't have it, you can get Emacs from
ftp://ftp.gnu.org/gnu/emacs/ (prebuilt Windows binaries at
ftp://ftp.gnu.org/gnu/emacs/windows/ )

-- 
T.E.D.   Work     -  mailto:dennison@ssd.fsi.com
         Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
         Homepage -  http://www.telepath.com/~dennison/Ted/TED.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 25 17:35:12 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.