aaron maxwell qolysnaplogicorg hello patch svnparsegotrevision buildbotslavecommandspy 076 solved specific problem id like feedback whether generally useful submit change svn reversion number calculated heres exact example first noticed one svn repositories consists trunk branches including individual developers working branches day recent commit made one developers branch revision number 602 time recent trunk commit numbered 598 command like svn co r 602 svnsshpathtotrunk youll get checkout trunk rev 598 run svnversion response 602 run svnversion c response 1598 purposes number need 598 since revision actual trunk commit patch basically runs svnversion c rather svnversion parsing response appropriately right solution others well perhaps people need svnversion behavior svnversion c could alter configurable thanks advance heres patch separate file httpredsymbolnetbuildbotcommandspypatch pasted buildbotslavecommandspyorig 20071029 205559000000000 0700 buildbotslavecommandspy 20071029 210340000000000 0700 15017 15017 svnversion_command getcommandsvnversion older versions svnversion 114 require wc_path argument newer ones 131 command svnversion_command command svnversion_command c c shellcommandselfbuilder command ospathjoinselfbuilderbasedir selfsrcdir environselfenv 151016 151017 cusepty false cstart def _parseres r cstdoutstrip support removing svnversion indicator modified r1 r r1 r_raw cstdoutstrip extract revision version number string r r_rawrstripms rfind 0 r rsplit1 got_version none try got_version intr except valueerror msg svnparsegotrevision unable parse output svnversion r svnversion r_raw logmsgmsg selfsendstatusheader msg n return got_version aaron maxwell qolysnaplogicorg httpsnaplogicorg snaplogic inc data integration last mile sfnet email sponsored splunk inc still grepping log files find problems stop search log events configuration files using ajax browser download free copy splunk httpgetsplunkcom thu 07 aug 2008 012631 0700 buildbotdevel svnparsegotrevision patch