Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2014 13:27:31 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r266218 - user/des/tinderbox
Message-ID:  <201405161327.s4GDRV90041132@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Fri May 16 13:27:31 2014
New Revision: 266218
URL: http://svnweb.freebsd.org/changeset/base/266218

Log:
  Don't run svn upgrade / cleanup just for svn version.

Modified:
  user/des/tinderbox/tinderbox.pl

Modified: user/des/tinderbox/tinderbox.pl
==============================================================================
--- user/des/tinderbox/tinderbox.pl	Fri May 16 12:43:45 2014	(r266217)
+++ user/des/tinderbox/tinderbox.pl	Fri May 16 13:27:31 2014	(r266218)
@@ -621,10 +621,12 @@ MAIN:{
     if ($cmds{'revert'} || $cmds{'version'} || $cmds{'update'}) {
 	$svncmd = [grep({ -x } @svncmds)]->[0]
 	    or error("unable to locate svn binary");
-	if (-d "$srcdir/.svn") {
-	    spawn($svncmd, "upgrade", $srcdir);
-	    spawn($svncmd, "cleanup", $srcdir);
-	}
+    }
+
+    # Upgrade and unlock the working copy
+    if (($cmds{'revert'} || $cmds{'update'}) && -d "$srcdir/.svn") {
+	spawn($svncmd, "upgrade", $srcdir);
+	spawn($svncmd, "cleanup", $srcdir);
     }
 
     # Revert sources



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405161327.s4GDRV90041132>