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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:34:33+00:00 2026-06-09T07:34:33+00:00

I use svn in command line. How can I get the head version number

  • 0

I use svn in command line.
How can I get the head version number in command line. I need the number,not only to see the info . I want to use this number to build my project automatic.

  • 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-09T07:34:36+00:00Added an answer on June 9, 2026 at 7:34 am

    As the comment below mentioned, this can be achieved by the following command in the newer SVN clients:

    svn info -rHEAD --show-item revision
    

    Original Answer

    Here is simple shell script thingy for you. Execute: svn info -rHEAD | grep Revision | cut -d' ' -f2

    See it in action:

    main$ svn info -rHEAD
    Path: main
    URL: svn://url/trunk/main
    Repository Root: svn://url
    Repository UUID: xxxxx-xxxx-xxxx-xxxx-xxxxxxxx
    Revision: 17042
    Node Kind: directory
    Last Changed Author: Nishant
    Last Changed Rev: 17040
    Last Changed Date: 2012-08-09 11:29:05 +0530 (Thu, 09 Aug 2012)
    
    main$ svn info -rHEAD | grep Revision | cut -d' ' -f2
    17042
    

    Edit1: updated to fetch head rev.

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

Sidebar

Related Questions

I want to use svn command line with beyond compare and get the following
When I use 'svn diff' from the command line, it prints out the lines
I want to check code from the repository http://code.sixapart.com/svn/perlbal/ . I can only access
Hello is there a way to use svn command line from eclipse? Within eclipse
I've read about the svn move command but haven't been able to use it
Possible Duplicate: How can I downgrade the version of an SVN working copy? http://subversion.tigris.org/faq.html#working-copy-format-change
I currently use SVN for a number of things that aren't exactly code, for
I just can't seem to find a way on the command line to say
I use TRAC for project tracking and SVN for version control. For their independent
I am very new with Supervision SVN. I want to know about SVN command

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.