comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: Writing changelog entries
Date: 04 Jan 2005 21:02:13 -0500
Date: 2005-01-04T21:02:13-05:00	[thread overview]
Message-ID: <mailman.28.1104890547.527.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <87wtus3do0.fsf@deneb.enyo.de>

Florian Weimer <fw@deneb.enyo.de> writes:

> Many projects have explicit guidelines which ensure that you can
> grep the changelog and find the change which affected a particular
> entity. 

I never use a changelog for that. In fact, I never do that. But I
guess I haven't been involved in a large project where that would be
necessary; all my projects are small enough that I know what's going
on anyway, by keeping up with daily CVS updates.

> However, these guidelines are C-specific and do not take homographs
> into account (and neither nested subprograms, and so on).

Right. Hmm. You want a CM tool that can answer the query:

    what changes affected <name>.

I don't know of any CM tools that do that directly; it would require
the CM tool to understand the language.

In Ada, every name can be spelled uniquely; for overloaded functions
you need to include the parameter/result profile, etc. So you could
have a style guide that says "when checking in changes, include the
_unique_ name of every item affected". Yuck; that would be a huge
burden on the programmers. 

You could write an ASIS tool to generate that name list by comparing
the two versions of the file; you can have CVS run that tool and
append the result to the checkin comment. Hmm. Getting both versions
into one ASIS context would be tricky; you'd need a top level
namespace for each version. Whether that's worth doing depends on how
often you do this query, and how important it is.

Hmm. You could have the CM tool generate the diffs for each change,
and then grep that for <name>. That might be efficient, but it doesn't
address the homograph issue.

-- 
-- Stephe




  reply	other threads:[~2005-01-05  2:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-04 20:31 Writing changelog entries Florian Weimer
2005-01-04 23:51 ` Randy Brukardt
2005-01-05  0:28 ` Stephen Leake
2005-01-05  0:47   ` Florian Weimer
2005-01-05  2:02     ` Stephen Leake [this message]
2005-01-06 20:19     ` Randy Brukardt
2005-01-07 23:32       ` Brian May
2005-01-08  2:12         ` Stephen Leake
2005-01-10 20:57         ` Randy Brukardt
2005-01-05 12:31   ` Pascal Obry
2005-01-05 23:29     ` Stephen Leake
2005-01-06 17:51       ` Pascal Obry
replies disabled

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