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

RE: [TSVN] tsvn:logtemplate question - suggestions

From: Steven H _at_ orcon <_at_>
Date: 2004-12-20 01:01:31 CET

An overview of what would be cool for variable substitution in log templates

$tab$, $space$, $nl$
Ability to incorporate simple formatting $tab$, inserts a tab space $space$,
inserts a space, $nl$ inserts a newline - you could even get rid of these
and just use c style escaped ascii in the log template definition.

$FileList$ (I know you said NO already but just bear with me) Code that
parses this keyword will create a list of manipulated files along with their

Ability to customize the layout of the $FileList$
$FileList$="$StatusFlag$ :$tab$ $FileItem$ $nl$ (Details Of Change)"
$FileItem$ is an individual file name & path
$StatusFlag$ is an individual status flag for a specific file name & path

Ability to customize status flags which go inside FileList
$lock$/$unlock$="something" (does (un)lock end up in commit records?)

$AutoBugId$, $ManualBugId$
Ability to define manual and 'automajic' bugid associations.
At least for the moment (iirc) you cant associate two different bug id's to
a commit. Associate a fix for one bugID and associate a reference to
another. So at least for the moment have the ability for two types of bugID

$AutoBugId$ = what is filled in from the tsvn ui
$ManualBugId$ = what is filled in by a human

Manual & Auto bugID could have the values
$AutoBugId$="[]" content form the UI would be inserted inbetween the []
$ManualBugId$="[refs #][closes #]" compiles with my bug-management software

You would need to have two 'sections' inside tvsn:logtemplate, one which
defines the values for the variables and the other which defines the
template layout.

Maybe stuff the variable association inside {}

An example of a log template could be (stored inside tvsn:logtemplate)

$FileList$="$StatusFlag$ :$tab$ $FileItem$ $nl$ $tab$(Details Of Change)"
$ManualBugId$="[refs #][closes #]"
Brief Description ...
An example of what would be generated when the "insert template" button is
+ :	/someFolder/someFile.cs
	(Details Of Change)
~ :	/someFolder/someOtherFile.cs
	(Details Of Change)
~ :	/someOtherFolder/someFile.cs
	(Details Of Change)
[refs #][closes #]
You could then add some notes as to what was changed
An example of what would end up being committed
Does some stuff
- + :	/someFolder/someFile.cs
       someProcedureName(..) was not properly validating the imputs given
changed its argument sanity check procedure.
- ~ :	/someFolder/someOtherFile.cs
	 someOtherProcedure(..) was returning a incorrect object.
- ~ :	/someOtherFolder/someFile.cs
[refs #1]
what it comes down to is that I believe we need need something that is
flexible enough to be able to be molded around the needs of different
-----Original Message-----
From: SteveKing [mailto:steveking@gmx.ch] 
Sent: Sunday, 19 December 2004 5:41 a.m.
To: dev@tortoisesvn.tigris.org
Subject: Re: [TSVN] tsvn:logtemplate question
Mark Phippard wrote:
> Does this property support any substiution variables of any kind?  I do 
> not see any mention of it in the help, but I seem to recall when the 
> feature was discussed that was part of it.
> I do not care if there are not any, I just want to add support for this to
> Subclipse and want to be consistent in behavior.
Right now, it doesn't. But of course you can make suggestions ;)
What variables do you want to substitute and what for? I can't see right 
now what this would be useful for, can you make an example?
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Dec 20 01:02:21 2004

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

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