Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 136703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:59:25+00:00 2026-05-11T06:59:25+00:00

In my web application I have a file which hold the current revision number

  • 0

In my web application I have a file which hold the current revision number via $Rev$. This work fine except, if I don’t make any changes to that file, it doesn’t get committed.

Is there anyway I can force a single file to always get committed to the SVN server?

I’m using TortoiseSVN for Windows so any code or step-by-step instructions would be helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:59:26+00:00Added an answer on May 11, 2026 at 6:59 am

    If you have TortoiseSVN installed, you also have the SubWCRev tool available. Use that tool to get the revision instead of misusing the $REV$ keyword.

    1. create a template file which contains your defines, maybe something like

      const long WC_REV = $WCREV$;

      in a file named version.h.tmpl

    2. on every build, call SubWCRev to create the ‘real’ file you can use in your application:

      SubWCRev path\to\workingcopy path\to\version.h.tmpl path\to\version.h

    This will create the file version.h from version.h.tmpl, with the text $WCREV$ replaced with the revision your working copy is currently at.

    The docs for SubWCRev might help too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web application which does the following: Reads an Excel file.
I have a web application in VS2010 which has a number of DLLs that
I have a web application which I wish to configure via settings in an
I have a VB web application that reads from a CSV file which contains
Currently I have an application that receives an uploaded file from my web application.
I have a web application that needs to take a file upload from the
I have a C# web application that needs to deploy a file to the
In my ASP.NET application I have a web.config file. In the web.config file I
In our web application we have a directory which resides outside of the project.
In my web-application i have a form which contains about 25 fields. Users will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.