allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/3] allura git commit: [#7857] syntax fixes
Date Mon, 23 Mar 2015 17:06:04 GMT
[#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/295d1ee5
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/295d1ee5
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/295d1ee5

Branch: refs/heads/db/7857
Commit: 295d1ee569a174ae51f8ed6efd2f600e7ffbced8
Parents: a2dd744
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri Mar 20 20:53:52 2015 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Mar 20 20:53:52 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/295d1ee5/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)


Mime
View raw message