You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/04/01 23:10:41 UTC

[24/45] allura git commit: [#7857] syntax fixes

[#7857] syntax fixes


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ca409930
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ca409930
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ca409930

Branch: refs/heads/hss/7072
Commit: ca40993060183183d5c48df96d1f3198136342cb
Parents: a6b536c
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Mar 20 20:53:52 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Mar 27 10:56:41 2015 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ca409930/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index c5643e1..94d29b0 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -282,20 +282,20 @@ class SVNImplementation(M.RepositoryImplementation):
             fail_count = 0
             returncode = -1
             set_hook('pre-revprop-change')
-            while returncode != 0 && fail_count < max_fail:
+            while returncode != 0 and fail_count < max_fail:
                 stdout, stderr, returncode = self.check_call(['svnsync', 'init', self._url, source_url])
                 # Sleep for 10s and bump the fail counter if svnsync didn't run clean
                 if returncode != 0:
                     time.sleep(10)
-                    fail_count++
+                    fail_count += 1
             # Reset the return code to non-zero for next command interation, but reuse the fail counter
             returncode = -1
-            while returncode != 0 && fail_count < max_fail:
+            while returncode != 0 and fail_count < max_fail:
                 stdout, stderr, returncode = self.check_call(
                     ['svnsync', '--non-interactive', 'sync', self._url])
                 if returncode != 0:
                     time.sleep(10)
-                    fail_count++
+                    fail_count += 1
             clear_hook('pre-revprop-change')
 
         log.info('... %r cloned', self._repo)