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
  • 19,527
  • 31
  • 134
  • 226

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
  • 29,961
  • 12
  • 103
  • 150
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
  • 19,527
  • 31
  • 134
  • 226