Topic “sed”

Subversion: Determine the highest revision number in the working copy

This seems to do the trick when run in a terminal from the top level of the working copy:

svn info -R  | grep Revision | sed "s/Revision: //g" | sort -n | tail -1

Updated
Or, you could just use the svnversion command.

Syndicate content
Syndicate content

Twitter

  • RT @Crell An obituary for an old friend: http://bit.ly/gNdVIl #Drupal #Git #CVS 3 years 21 weeks ago
  • (That is to say, in hook_views_data(). #views #drupal) 3 years 21 weeks ago
  • #drupal #views3 gurus: Is it possible to declare a relationship with an intederminate base table & field? (TBD by the handler?) 3 years 21 weeks ago
  • I wrote a module and someone else figured out how to use it to pull Webform data into #Drupal views. http://bit.ly/hGDGGi 3 years 27 weeks ago
  • RT @nquabbinlodge Meeting tonight in Athol MA! Work of the evening: confer the 3rdº on 1 candidate. Dinner at 6, lodge opens at 7. 3 years 32 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key