incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [37/42] git commit: [#4691] Fixed test failing due to unstripped diff path
Date Tue, 05 Feb 2013 20:23:34 GMT
[#4691] Fixed test failing due to unstripped diff path

Signed-off-by: Cory Johns <johnsca@geek.net>


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

Branch: refs/heads/master
Commit: be38780b423562ac8d415baf6d42abc99ddeaaca
Parents: c97950a
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Jan 23 16:27:09 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Feb 5 20:22:52 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/be38780b/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 2c5b7e9..3dbdad7 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -363,8 +363,9 @@ class Commit(RepoObject):
         diffs = set()
         if diff_info:
             for d in diff_info.differences:
-                diffs.add(d.name.strip('/'))
-                node_path = os.path.dirname(d.name)
+                node = d.name.strip('/')
+                diffs.add(node)
+                node_path = os.path.dirname(node)
                 while node_path:
                     diffs.add(node_path)
                     node_path = os.path.dirname(node_path)


Mime
View raw message