Adding change history to classes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have come to C# via VB6, and our VB6 apps all had the following header in every class/module/form etc
'**************************************************************************
'
'* $History: clsDooHicky.cls
'
'**************************************************************************
which had the rather nifty effect of adding any VSS check in comments to the top of your module when you checked it in. After a few changes to a module, you would get something like:

'* ***************** Version 11 ****************
'* User: Jimbo Date: 28/03/02 Time: 9:3
'* Updated in $/Web Tools/DDT/v2.0-0/Doohick
'
'* ***************** Version 10 ****************
'* User: Jimbo Date: 27/03/02 Time: 16:0
'* Updated in $/Web Tools/DDT/WIP/Doohick
'
'* ***************** Version 9 ****************
'* User: Jimbo Date: 13/02/02 Time: 10:5
'* Updated in $/Web Tools/DDT/Doohick

Does anyone know how to do a similar thing in C#?
 
Posting to myself (which is never a good thing) but I must add that I have added the file types I want VSS to search through the admin program (in this case *.cs,*.aspx,*.aspx.cs) but that doesnt appear to work for me.
 
Lee said:
I have come to C# via VB6, and our VB6 apps all had the following header in every class/module/form etc.
'***************************************************************************
'*
'* $History: clsDooHicky.cls $
'*
'***************************************************************************
which had the rather nifty effect of adding any VSS check in comments to the top of your module when you checked it in. After a few changes to a module, you would get something like:-

'* ***************** Version 11 *****************
'* User: Jimbo Date: 28/03/02 Time: 9:35
'* Updated in $/Web Tools/DDT/v2.0-0/Doohicky
'*
'* ***************** Version 10 *****************
'* User: Jimbo Date: 27/03/02 Time: 16:00
'* Updated in $/Web Tools/DDT/WIP/Doohicky
'*
'* ***************** Version 9 *****************
'* User: Jimbo Date: 13/02/02 Time: 10:58
'* Updated in $/Web Tools/DDT/Doohicky

Does anyone know how to do a similar thing in C#?

Are You using CVS, or other stuff?


/***************************************************************************
*
* $History: clsDooHicky.cls $
*
***************************************************************************/

Should be what You want...

Regards

Marcin
 
Thanks, that seems to work for the first check in, but not for subsequent ones

My "Expand Keywords in files of type" i

*.CS,*.ASPX,*.ASPX.CS,*.CLS,*.FRM,*.MO

So maybe I have missed something here too
 
Thanks again, and ignore my last post

Further tests show that either VSS or .Net is protecting me from myself. If I check something out, and back in again without changing anything the check in is treated as an undo checkout

Darn clever of it.
 
Back
Top