Changeset 890 for trunk


Ignore:
Timestamp:
04/20/11 23:11:25 (8 years ago)
Author:
gav
Message:

Small adjustment to updateRev script, to use last committed revision instead of the repository head revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/_UpdateRev.groovy

    r531 r890  
    114114            return fail(code:"vcs.working.copy.not.found", args:[basedir]) 
    115115 
    116     // Use svnkit to get the base revision. 
     116    // Use svnkit to get the last committed revision. 
    117117    def clientManager = SVNClientManager.newInstance() 
    118118    def wcClient = clientManager.getWCClient() 
    119119    try { 
    120         result.revision = wcClient.doInfo(wc, SVNRevision.BASE).getRevision().toString() 
     120        result.revision = wcClient.doInfo(wc, SVNRevision.BASE).getCommittedRevision().toString() 
    121121    } 
    122122    catch(org.tmatesoft.svn.core.SVNException e) { 
Note: See TracChangeset for help on using the changeset viewer.