• Home
  • Subversion Hosting
  • Documents
  • Contact Us
  • Members Login

Keyword Example

The example below shows how keywords in a template file are substituted in the output file.

// Test file for SubWCRev

char *Revision = "$WCREV$";
char *Modified = "$WCMODSЁModified:Not modified$";
char *Date     = "$WCDATE$";
char *RevRange = "$WCRANGE$";
char *Mixed    = "$WCMIXEDЁMixed revision WC:Not mixed$";
char *URL      = "$WCURL$";

#if $WCMODSЁ1:0$
#error Source is modified
#endif

// EndOfFile

After running SubWCRev.exe, the output file looks like this:

// Test file for SubWCRev

char *Revision = "3701";
char *Modified = "Modified";
char *Date     = "2005/06/15 11:15:12";
char *RevRange = "3699:3701";
char *Mixed    = "Mixed revision WC";
char *URL      = "http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/src/SubWCRev";

#if 1
#error Source is modified
#endif

// EndOfFile

All Plans Include

Online management tools
Access control lists (ALCs)
Read only or read write users
Secure HTTPS connections
Data mirrored onto backup servers
Disk usage reporting
Online invoices & payments
Unlimited support
Click for Free Subversion Hosting