Click here to register.
      
PBWG Banner


     Discuss > Etcetera

OT: ci -l (RCS) - easily version your files

User crythias
Date 4/14/2006 9:56 pm
Views 999
Rating 5    Rate [
|
]
Previous · Next
User Message
crythias

Sometimes, you don't realize how simple *nix is until someone beats you over the head with it.

Case in point: RCS (Revision Control System). Chances are, you have it installed already in your *nix, *BSD distribution of choice.

Why use it?
so you don't have to do a save as and make cryptic backups (with weird extensions) of oft-edited files (like httpd.conf or webgui.conf or yourNewMacro.pm)

Why not cvs or svn or ...?
You can do that, but maybe you just want to make progressive edits and don't really care a lot about all the extra fancy features. You just want to backup, edit, and have a chance to review versions of one file, but not interested so much in application deployment.

How do I do it?
(optional, but recommended: create an RCS folder in the directory you're editing -- RCS info will go there)
ci -l filetoedit.ext
(give it an optional tag and use . on its own line to stop tag)

edit away.

How do I recover?
co -l filetorecover.ext

How do I see what I've done before?
rlog file.ext

How do I get diffs?
rcsdiff file.ext

This information is provided in the man pages, but I got an excellent quick look at this tutorial.


Windows users don't have to be left out. http://www.codeproject.com/tools/cs-rcs.asp is one option for you.

If you know and use cvs or svn, you may question my point. cvs and svn, especially, are great for projects that span multiple files and directories. RCS is great to simply be able to control one file at a time. To each his own, to be sure. I hope this might be of benefit to someone.

A suggestion ... you might want to alias cvi, forinstance, to "ci -l $1; vi $1" as a matter of convenience (?).
--
Maintainer of an unofficial WebGUI FAQ Please contribute questions or answers!
When asking questions on this forum, please indicate (at least) which version of WebGUI you are using. Optional, but sometimes helpful, are your Operating System name and version, PERL version, and Apache version. The little icons next to my picture indicate my IM status. Yes, you are welcome to IM me. I am not an employee of Plain Black. My offers of assistance are subject to the general disclaimer of this discussion board that my answer may be completely wrong. Have a great day!

www.gwy.org U2U crythias on #webgui on irc.freenode.net

--- (Edited on 4/14/2006 10:56 pm [GMT-0400] by crythias) ---



Back to Top
Rate [
|
]
 
 
     Discuss > Etcetera



Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Navigation links by techwriter - Fri @ 03:23pm

Re: Best way to make files available to webgui comunity by bernd - Fri @ 02:50pm

Re: User event history by knowmad - Fri @ 02:02pm

Re: Best way to make files available to webgui comunity by lctn2 - Fri @ 01:55pm

Re: Strategic Roadmap by JT - Fri @ 01:55pm

Re: Navigation links by rogier - Fri @ 01:55pm

Re: 2009 Presidents Meeting by JT - Fri @ 01:10pm

Re: navigation new window by rogier - Fri @ 01:03pm

Re: navigation new window by rogier - Fri @ 12:53pm

Re: WUC 2009 by JT - Fri @ 12:50pm

Re: Best way to make files available to webgui comunity by preaction - Fri @ 12:35pm

Re: Pagination markup by rogier - Fri @ 12:35pm

Re: Best way to make files available to webgui comunity by kristi - Fri @ 12:29pm

Debian and Ubuntu Packaging Status by jmarsden - Fri @ 12:12pm