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

Re: Possible way to support $Log$

From: Keven Ring <keven_at_mitre.org>
Date: 2004-04-21 14:35:20 CEST

Lübbe Onken wrote:

> John Peacock wrote:
> ...
> Lots about logs
> ...
> I like the B1 solution most:
>
>> B1) $Log[4]$ means include the last 4 history records;
>
>
> How about embedding the log between $LogN$ and $LogEnd$ tags
> where N is the number of log entries to include. If N is omitted, all
> log entries are shown.
> There also has to be a file extension specific line comment property
> (let's call it LC) to make everything work.
>
> Assume that LC = '//' and you want your last five log entries in the
> file's header. So you just insert:
>
> // $Log5$
>
> and commit. The next person updating the file will receive
>
> // $Log5:
> // My
> // last
> // five
> // log
> // entries
> // $LogEnd$
>
> Upon a commit everything following the $LogN: and including $LogEnd$
> is dumped and $LogN: becomes $LogN$ again. The colon indicates, that
> the $LogN$ is expanded.
>
> How about that?
>
> Cheers
> -Lübbe
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
Rather than having an LC property, you could just use whatever was in
front of the $LogN$

Thus, for C/C++/Java/etc programs, you might do:

/*
  $Log5$
*/

or

// $Log5$

For Shell scripts, you might do:

# $Log5$

and for Windows Batch files, you might do:

REM $Log5$

The rest stays the same...

Just my $0.02.

-- 
Keven Ring               | "Oh no,  Not Again..."
The MITRE Corporation    |   Bowl of Petunias -
7515 Colshire Drive      |   The Hitchhikers Guide to the Galaxy
McLean VA 22102-7508     |
PH: (703)883-7026        |
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 21 14:37:52 2004

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

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