Adding any new .h header work files to my project doesn't work correctly

adding any new .h workfiles to my PVCS project does not comment out the description of the changes with two forward slashes. 

All other file extensions .cpp, .cs, .hpp work correctly.

I'm using Version Manager Services 8.6.3.0 build 421 on a Windows 10 Professional PC

My test file (header.h) only has the following two lines in it.

//This is a header.h test

//$Log:   $

After adding the workfile and then viewing the file or getting out of PVCS returns the following.

//This is a header.h test

//$Log: K:/Longitude/Soft_Eng/archives/Host/Source/TX6UL/WEC2013MC_K3/include/Header1.h-arc $
*
* Rev 1.1 Jan 07 2025 13:33:38 bmatsas
*Initial revision.

Where are these asterisks coming from?  They should have // instead.  Hummm 

  • Suggested Answer

    0  

    Hello Brian,

    Those asterisks are coming from the Comment Prefix attribute on the archive. You can see its current value by performing a Show History on the file and looking for the COMMENTPREFIX line in the Attributes section.

    To change the attribute for existing archive, select that file and use Admin | Archive Attributes to change the Comment Prefix value. Example:

    To change the default for new files of that type, use Admin | Configure Project, select the file type and change the definition:

    More details can be found in KB doc https://knowledgebase.serena.com/InfoCenter/index?page=content&id=S122399 (VM: How to change a File Type-specific Archive Attribute (like Keyword Expansion) so it applies to new files as well as existing ones).

    With kind regards,

    - Richard.