allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: Make svn changed paths order deterministic
Date Tue, 14 Apr 2015 17:56:16 GMT
Repository: allura
Updated Branches:
  refs/heads/master 33dcb089e -> 747cad091


Make svn changed paths order deterministic


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

Branch: refs/heads/master
Commit: 747cad09101ce4b92622a042ead4c1727b4170cd
Parents: 33dcb08
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Apr 9 18:49:05 2015 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Thu Apr 9 18:49:05 2015 +0300

----------------------------------------------------------------------
 ForgeSVN/forgesvn/model/svn.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/747cad09/ForgeSVN/forgesvn/model/svn.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/model/svn.py b/ForgeSVN/forgesvn/model/svn.py
index cf70b7d..4594a2f 100644
--- a/ForgeSVN/forgesvn/model/svn.py
+++ b/ForgeSVN/forgesvn/model/svn.py
@@ -22,6 +22,7 @@ import string
 import logging
 import subprocess
 import time
+import operator as op
 from subprocess import Popen, PIPE
 from hashlib import sha1
 from cStringIO import StringIO
@@ -801,7 +802,7 @@ class SVNImplementation(M.RepositoryImplementation):
             return result
         if len(log_info) == 0:
             return result
-        paths = log_info[0].changed_paths
+        paths = sorted(log_info[0].changed_paths, key=op.itemgetter('path'))
         result['total'] = len(paths)
         for p in paths[start:end]:
             if p['copyfrom_path'] is not None:


Mime
View raw message