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

  • SEARCH
  • Home
  • 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 8715279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:48:30+00:00 2026-06-13T05:48:30+00:00

I am wanting to display in my application current commit number. I use SVN

  • 0

I am wanting to display in my application current commit number. I use SVN and my code is C#.

I wonder if I can update automatically a text file WITHIN REPOSITORY so it will contain a commit number, eg, displaying it to user.

Currently I am thinking of making a post-commit hook (a shell script that receives several environment variables containing commit info) and “echo” the commit number into that text file. Is it a valid thing to do, to interfere with text files from repository on server side?

Any other means to store build number? I know SVN can modify source codes for some keywords, but then I need to commit these files to get modified. I want to be able to get that revision number updated ALWAYS, not when I commit a particular file.

  • 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. Editorial Team
    Editorial Team
    2026-06-13T05:48:31+00:00Added an answer on June 13, 2026 at 5:48 am
    1. You haven’t to have additional file with global revision number in repository, because repository already have this meta-information
    2. You must not (and can’t really) modify repository in post-commit hook
    3. You can get RevID on build-stage only (“build” can be plain export from repo, compile etc…) and write in some unversioned source

    If you c#-code, you use Windows, yes?! In this case, except svn info, which output you must pre-parse for usage, you can consider using SubWCRev (part of TortoiseSVN), which transform versioned template file with SubWCRev-keywords into unversioned data file with keywords replaced by actual data from repository-info

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

Sidebar

Related Questions

Hi I was wanting to display the number of characters entered into a textbox
I am wanting to use the g:timeZoneSelect tag within my application, problem is im
I am wanting to create a page that can load a property file into
I'm wanting to display on a php page the difference between the current server
I am wanting to start programming some simple applications that I can use as
I am wanting to display one list element at a time. Ideally, the first
Wanting to give byobu a looksee as a screen 'update' of sorts. I start
I'm wanting to extract a zip file loaded with images into memory in some
I'm wanting to use a php variable as the destination email for Amazon SES
I have a form in a Windows form application that I want to display

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.