0

If I type

svn info|grep Revision

I get the latest revision in all branches, but how do I get the latest commit only in the main trunk?

rubo77
  • 17,707
  • 27
  • 124
  • 213

2 Answers2

2

It's svn info <URL-to-trunk> -r HEAD

"-r HEAD" part is not really required because svn info shows the most recent commit made to the specified version of the object by default.

See SVNBook | svn info.

bahrep
  • 27,991
  • 12
  • 99
  • 140
1

I found it here: How do you determine the latest SVN revision number rooted in a directory?

svnversion -c /path/to/your-projects-local-working-copy/. | sed -e 's/[MS]//g' -e 's/^[[:digit:]]*://'
Community
  • 1
  • 1
rubo77
  • 17,707
  • 27
  • 124
  • 213