comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: ada writing guide
Date: 2000/04/20
Date: 2000-04-20T00:00:00+00:00	[thread overview]
Message-ID: <38FF57B2.C2A41554@telepath.com> (raw)
In-Reply-To: 8766tcwzln.fsf@deneb.cygnus.argh.org

Florian Weimer wrote:

> Ted Dennison <dennison@telepath.com> writes:
>
> > I have already explained that this scenario can occur just as easily
> > when the revision control master files are not directly accessable.
>
> No, you have shown that careless programmers can make a mess even if a
> CM system is used.  For example, with CVS, a programmer cannot commit
> his changes to a file if they are based on an outdated version (i.e. a
> newer one has been committed to the repository since he first checked
> out the file).  He has to adapt his changes to match the newest
> version of the file first.  Of course, if the programmer doesn't

Since I don't see any specifics in my post addressed, I'll try to do it
for you myself. One of us is missing something. It could well have been
me:


  1. User does checkout of cvs repostitory
  2. User starts emacs, which loads the exception file into a local
     buffer.
  3. Exception file changes outside of emacs, and is updated.
  4. User realizes that lots of stuff is out of date (not nessecarily just
     exception file), so he does a "cvs update". Now as far as CVS is
     concerned, user is looking at the most up-to date version. However,
     his emacs is still working from the old exception file.
  5. User sees a new exception, and does a Ctrl-C Ctrl-Y, which saves the
     *old* version of the exception file to disk, with his one update
  6. User wants his new exception saved in cvs, so he does a "cvs commit".
     Cvs has no problem with this, as it thinks the user was working from
     the latest version.

Now the result of this process is that User just wiped out the previous
version revision-controlled changes to the exception file.

So what are your *specific* problems with this scenario? You said:

   * "Careless programmers can make a mess, even if CM is used". So
     perhaps you think that User above was being careless in not routinely
     doing an update of emacs' internal exceptions buffer before doing the
     write? That is perhaps a reasonable position. But in that case, why
     bring up revision control at all? Revision control doesn't even
     materially change the mistake a "careless" programmer has to make. It
     just adds some steps to either side of it. Plus, if the way to *not*
     be careless is to take one extra step (reloading the exceptions
     buffer) every time it is saved, what's wrong with advocating that
     emacs do both instead of just the one? Why leave it open to easy
     carelessnes? Why make the user perform two steps (forgetting one of
     which will sliently hose his file) every single time?
   * "with CVS, a programmer cannot commit his changes to a file if they
     are based on an outdated version". This is true only in the abstract.
     All CVS does is force the programmer to have issued a "cvs update"
     from the most recent version before he does a "commit". CVS does not
     force emacs to reload its local copy of that file. Emacs, won't
     notice the problem on its side, like it would for a normal file. CVS
     has no way of telling that the file used for "commit" really was
     based off that "update" file. If emacs wipes out that most recent
     version with something based off an older version, CVS can't help
     you.

--
T.E.D.

Home - mailto:dennison@telepath.com  Work - mailto:dennison@ssd.fsi.com
WWW  - http://www.telepath.com/dennison/Ted/TED.html  ICQ  - 10545591






  reply	other threads:[~2000-04-20  0:00 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12  0:00 ada writing guide Riyaz Mansoor
2000-04-12  0:00 ` Ted Dennison
2000-04-12  0:00   ` Robert Dewar
2000-04-13  0:00     ` Jeffrey D. Cherry
2000-04-13  0:00       ` Ted Dennison
2000-04-13  0:00         ` Jeffrey D. Cherry
2000-04-13  0:00           ` Ted Dennison
2000-04-14  0:00             ` Pascal Obry
2000-04-14  0:00               ` Ted Dennison
2000-04-14  0:00                 ` Pascal Obry
2000-04-17  0:00                   ` Ted Dennison
2000-04-17  0:00                     ` Florian Weimer
2000-04-17  0:00                       ` Ted Dennison
2000-04-17  0:00                         ` Ted Dennison
2000-04-18  0:00                         ` Robert Dewar
2000-04-18  0:00                           ` Ted Dennison
2000-04-18  0:00                             ` Robert Dewar
2000-04-18  0:00                               ` Ted Dennison
2000-04-18  0:00                                 ` Brian Courtney
2000-04-19  0:00                                   ` Florian Weimer
2000-04-19  0:00                                   ` Brian Courtney
2000-04-19  0:00                                 ` Florian Weimer
2000-04-19  0:00                                   ` Ted Dennison
2000-04-24  0:00                                     ` Samuel T. Harris
2000-04-19  0:00                                   ` Robert Dewar
2000-04-20  0:00                                     ` Ted Dennison
2000-04-20  0:00                                       ` Florian Weimer
2000-04-20  0:00                                         ` Ted Dennison [this message]
2000-04-24  0:00                                   ` Samuel T. Harris
2000-04-24  0:00                                     ` Robert A Duff
2000-04-25  0:00                                     ` Robert Dewar
2000-04-27  0:00                                       ` Samuel T. Harris
2000-04-20  0:00                         ` Samuel T. Harris
2000-04-20  0:00                           ` Ted Dennison
2000-04-21  0:00                             ` Robert Dewar
2000-04-21  0:00                             ` Robert Dewar
     [not found]                               ` <38FFd43e.70f1bb7d@telepath.com>
2000-04-21  0:00                                 ` Larry Kilgallen
2000-04-21  0:00                               ` Ted Dennison
2000-04-24  0:00                             ` Samuel T. Harris
2000-04-24  0:00                               ` Robert A Duff
2000-04-27  0:00                                 ` Samuel T. Harris
2000-04-20  0:00                         ` Emmanuel Briot
2000-04-20  0:00                           ` Ted Dennison
2000-04-13  0:00           ` Robert A Duff
2000-04-16  0:00           ` Simon Wright
2000-04-16  0:00             ` Robert Dewar
2000-04-13  0:00         ` Ray Blaak
2000-04-15  0:00         ` Robert Dewar
2000-04-16  0:00           ` Simon Wright
2000-04-13  0:00       ` Samuel T. Harris
2000-04-13  0:00       ` Paul Graham
2000-04-13  0:00     ` Ted Dennison
2000-04-13  0:00   ` Riyaz Mansoor
2000-04-13  0:00     ` David C. Hoos, Sr.
2000-04-13  0:00     ` Ted Dennison
2000-04-12  0:00 ` Robert Dewar
2000-04-13  0:00   ` Riyaz Mansoor
2000-04-13  0:00     ` Jean-Marc Bourguet
2000-04-15  0:00     ` Robert Dewar
2000-04-14  0:00 ` Riyaz Mansoor
2000-04-14  0:00   ` tmoran
2000-04-14  0:00     ` David C. Hoos, Sr.
2000-04-15  0:00       ` Robert Dewar
2000-04-15  0:00       ` tmoran
2000-04-17  0:00         ` Marc A. Criley
2000-04-17  0:00       ` Ted Dennison
2000-04-18  0:00         ` Geoff Bull
2000-04-14  0:00   ` Ted Dennison
2000-04-14  0:00     ` Marin D. Condic
2000-04-14  0:00   ` Robert A Duff
2000-04-15  0:00   ` Robert Dewar
2000-04-15  0:00   ` Robert Dewar
2000-04-15  0:00     ` Marin D. Condic
2000-04-15  0:00       ` Ken Garlington
2000-04-27  0:00         ` gbull
2000-04-16  0:00       ` Ehud Lamm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox