473,394 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Adding change history to classes

Lee
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#?
Nov 16 '05 #1
4 841
Lee
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.
Nov 16 '05 #2
Lee wrote:
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
Nov 16 '05 #3
Lee
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

Nov 16 '05 #4
Lee
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.
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: pablo | last post by:
Dear NewsGroupers, I am relatively new to OOP and cannet get my head around this problem. I have two classes. Class Child extends Parent. There is no constructor for the Child class. So when I...
15
by: Ashot | last post by:
This is sort of both Python and Vim related (which is why I've posted to both newsgroups). Python related: ---------------------- I have been frustrated for quite some time with a lack of a...
8
by: Raven | last post by:
Hello, I get a error message when I try to Add data in a relational Access Database. This is the error message: "You cannot add or change a record because a related record is required in...
2
by: Clayton Hamilton | last post by:
I have a DataGrid on a webform bound to a Datasource and can successfully use <ItemTemplate> to create edit/update/cancel functionality for user maintenance of data. I use separate logic to delete...
4
by: Lee | last post by:
I have come to C# via VB6, and our VB6 apps all had the following header in every class/module/form etc '************************************************************************** ' '* $History:...
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
4
by: =?Utf-8?B?QWxleA==?= | last post by:
I upgraded a web application into a VS 2005/.NET 2.0 Web Application Project (as opposed to a Website project), but did not set the pages to be partial classes. Looking at the code behind, you...
10
by: thebuzzman | last post by:
I am creating a database for inputing ambulance run sheets. I have a table that lists different history conditions (HTN, CHF, Asthma....) In my main report form, I have a combo box that gets its'...
4
by: Mikey C | last post by:
Hi Everyone, I understand in many cases, adding to history when updating window.location.hash is a GOOD thing. In my case, I want to update bookmarkability from javascript (post-load), but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.