[M3devel] cvs question: how to know what I have changed on my machine?

Jay jayk123 at hotmail.com
Wed Jan 2 12:28:03 CET 2008


I look before and after, fyi, not just after, and do strive for coherence, within the limits of CVS (I think it's still only one file at a time, rapidly, one right after the other). Thanks for the other tips. cvs diff seems so inefficient. SVN's double diskspace is definitely worthwhile vs. CVS, but the way it should REALLY work is have the files be initially read only on the client, make me "check them out", which would save a copy and save some state locally as to what is checked out. No cooperation with others should be needed here. Perforce does this all correctly.. it seems pretty obvious and simple how to impelement this well. Ok, actually Perforce doesn't save the local copy. But it does know what you checked out, so it only goes to the server for the small number of files. So nobody gets it quite right, that I know, that I have used, yet, really, it seems so obvious and simple and inefficient and convenient...... sorry about the annoying ad, it's not my doing 

> Date: Wed, 2 Jan 2008 12:21:48 +0100> To: jayk123 at hotmail.com> CC: m3devel at elegosoft.com> Subject: Re: [M3devel] cvs question: how to know what I have changed on my machine?> From: wagner at elegosoft.com> > On Mon, Dec 31, 2007 at 09:48:26AM +0000, Jay wrote:> > > > I swear I looked for this on the web, several times. :)> > What is the right/fast way to see what I have changed in cvs?> > Is it really to go to the top of the tree and say cvs diff?> > Some source control system I have used, makes "checked in" files> > read only, requires you to "check out", and keeps track of what> > you checked out.> > This model seems quite nice.> > cvs works recursively from the current directory by default.> To check what has changed you use> > cvs -nq up> > which simulates an update and lets you know the status of changes.> > To get more details, you use> > cvs -q diff -u [files] | less> > This is of course what I do most of the times. There may be other> ways.> > > There is a fallback if the network is needed and not available.> > It is a little annoying, the inevitable failed save, but it is well> > worth it.> > CVS use an optimistic approach wrt. locking, and it works well in> practice. Locks or watches can be set if one really wants to, but> this needs the cooperation of all users. See `cvs edit' and> `cvs watchers' for details.> > > I've been doing cvs diff but it seem terribly inefficient.> > Same question for Subversion, though I haven't looked.> > It at least seems to rapidly know what I have changed, on my puny> > tree,> > and I know it also saves away all the originals, so diff is a client> > only operation.> > In Subversion, diff is a client operation wrt. the base vesion you> checked out, because that is held as backup copy in your workspace.> This leads to workspaces which occupy twice the amount of space,> but is sometimes worth the effort.> > > Oh another question -- how to view history?> > In CVS, the history for one file is called log. Use `cvs log file' to> view it. To get a complete history of changes, use the cvs2cl> utility, which accumulates changes recursively into ChangeLog files.> It's what you can see at http://modula3.elegosoft.com/cm3/ChangeLog> for the cm3 repository.> > > Like, what i keep doing is navigating to individual files on the web.> > It's fairly tedious.> > It'd be nice if checkins at right about the same time, with the same> > comment,> > where packaged up in the ui, like Perforce (well, for it, it is just> > one change)....> > I usually look at the diffs after commit, besides before.> > I'd suggest to do commits at package level (to always have a> consistent version checked-in) and look at the diffs before commit.> There are some more suggestions in > > http://modula3.elegosoft.com/cm3/cm3-cm-rules.html> > Olaf> > Thanks,> > - Jay> > -- > Olaf Wagner -- elego Software Solutions GmbH> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
_________________________________________________________________
Share life as it happens with the new Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_122007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080102/2f188a70/attachment-0002.html>


More information about the M3devel mailing list