Version 3 of CVS Best Practices

Updated 2010-05-08 18:13:56 by AMG

This is spun off from Starter Tcl.

The original material

escargo 26 Nov 2002 - I'm not sure if it fits in above or not, but configuration control using CVS [L1 ], should be considered. First, TkCVS [L2 ] interfaces to it. Second, there is the issue of putting appropriate tags in tcl source files. Some samples of the code that reside on this Wiki use CVS tags in creative ways (look at that package provide statement in Menus Even Easier Redux and the set RCSID in Text variable for text widget).

Is there a set of best practices for using CVS with Tcl that gets the best use out of CVS?

LV I'm not even certain I've seen a document concerning how the TCT is using CVS with the core. However, escargo, I recomment you spin this page off into a page to collect such tidbits.

--- So, the first issue of interest to me at least is what keywords do people use in their code and what do they use them for.

The defined CVS keywords that I know of:

  • Author
  • Date
  • Id
  • Revision
  • Source
  • Log

Thinking about the choices, it looks to me like the package provide statement in Menus Even Easier Redux could have been simplified if it used the Revision keyword instead of the Id keyword.


Idioms

What are the common idioms that people use to extract values out of the expansions of the keyword?

What are the tricks in parsing the different subparts out of the expansion of Id?


Arts and Crafts of Tcl-Tk Programming