Timeline for Getting the last revision number in SVN?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 13, 2017 at 22:23 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Active reading. [ <http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29> <http://en.wikipedia.org/wiki/Microsoft_Windows>].
|
Apr 2, 2016 at 2:16 | comment | added | GreatAndPowerfulOz | using just "svn info --show-item revision" will give you the current revision # only. | |
Jun 1, 2012 at 13:46 | comment | added | Butifarra |
Passing a delimiter instead of a character count works best for localized content, for example svn info | grep Revision | cut -d " " -f 2 will return the second string after it is split using spaces.
|
|
Mar 9, 2010 at 11:11 | comment | added | gimpf | that is, btw, the reason why I strongly dislike localized command line developer tools; zero advantage, bunch of problems. I usually remove the localizations for exactly this reason. | |
Feb 23, 2009 at 22:11 | comment | added | Blorgbeard |
@Mr Fooz, true. Probably better to do svn info svn://server/reporoot grep etc.. anyway, so you don't need a working folder.
|
|
Feb 23, 2009 at 21:54 | comment | added | zgoda | Also, this does not work for localized versions of SVN (in Polish this shall be |cut -c9-). | |
Feb 23, 2009 at 20:41 | history | edited | Blorgbeard | CC BY-SA 2.5 |
ok, removed confusing %*
|
Feb 23, 2009 at 20:39 | comment | added | Mr Fooz | Note: since this lacks -rHEAD, this will return the commit revision for the requested file or directory. This may not be the latest overall revision (because other changes may have been committed elsewhere or in a subtree). | |
Feb 23, 2009 at 20:39 | comment | added | Stephen | With svn 1.5.1 under linux, we get "Unknown command: 'info %*'". Changing the first section to "svn info" works for me. | |
Feb 23, 2009 at 20:39 | comment | added | Blorgbeard | Yeah sorry, took it from a windows batch file and missed that. | |
Feb 23, 2009 at 20:38 | comment | added | ypnos | It works if you put the repository URL where you have %*, whatever you mean by that. Nice syntax of cut, didn't know it before. | |
Feb 23, 2009 at 20:35 | history | answered | Blorgbeard | CC BY-SA 2.5 |