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 72471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:02:59+00:00 2026-05-10T20:02:59+00:00

EDIT : This question duplicates How to access the current Subversion build number? (Thanks

  • 0

EDIT: This question duplicates How to access the current Subversion build number? (Thanks for the heads up, Charles!)

Hi there,

This question is similar to Getting the subversion repository number into code

The differences being:

  1. I would like to add the revision number to Python

  2. I want the revision of the repository (not the checked out file)

I.e. I would like to extract the Revision number from the return from ‘svn info’, likeso:

$ svn info

Path: . URL: svn://localhost/B/trunk Repository Root: svn://localhost/B Revision: 375 Node Kind: directory Schedule: normal Last Changed Author: bmh Last Changed Rev: 375 Last Changed Date: 2008-10-27 12:09:00 -0400 (Mon, 27 Oct 2008) 

I want a variable with 375 (the Revision). It’s easy enough with put $Rev$ into a variable to keep track of changes on a file. However, I would like to keep track of the repository’s version, and I understand (and it seems based on my tests) that $Rev$ only updates when the file changes.

My initial thoughts turn to using the svn/libsvn module built in to Python, though I can’t find any documentation on or examples of how to use them.

Alternatively, I’ve thought calling ‘svn info’ and regex’ing the code out, though that seems rather brutal. 🙂

Help would be most appreciated.

Thanks & Cheers.

  • 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-10T20:03:00+00:00Added an answer on May 10, 2026 at 8:03 pm

    There is a command called svnversion which comes with subversion and is meant to solve exactly that kind of problem.

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

Sidebar

Ask A Question

Stats

  • Questions 94k
  • Answers 94k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You might want to consider using ASIHTTPRequest, as it will… May 11, 2026 at 6:48 pm
  • Editorial Team
    Editorial Team added an answer FindFirstChangeNotification ReadDirectoryChangesW also check out this question. May 11, 2026 at 6:48 pm
  • Editorial Team
    Editorial Team added an answer I found it after more hunting. I created a new… May 11, 2026 at 6:48 pm

Related Questions

I am currently working on converting an existing web application to support an additional
Duplicate of the following question: C function conflict Hi, in my current project I
Is there a way to collect (e.g. in a List) multiple 'generic' objects that
I've got an application here that I wrote many years ago that consists of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.