Skip to content

Instantly share code, notes, and snippets.

@marcelotmelo
Last active January 11, 2016 13:14
Show Gist options
  • Save marcelotmelo/c3fda92f2aeef1aeda54 to your computer and use it in GitHub Desktop.
Save marcelotmelo/c3fda92f2aeef1aeda54 to your computer and use it in GitHub Desktop.
Shell SVN helpers

#####Listing the nth revision from a given repository (replace size with the desired revision number and repo_url with the actual repository url):

svn log -l size -q repo_url | tr -d '-' | cut -d"|" -f 1 | tr -d 'r' | tail -n 2 | tr -d [[:space:]]

It will output a single number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment