You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/06 16:42:52 UTC
[42/50] git commit: [#4691] Fixed test failing due to unstripped diff
path
[#4691] Fixed test failing due to unstripped diff path
Signed-off-by: Cory Johns <jo...@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/cj/4691
Commit: be38780b423562ac8d415baf6d42abc99ddeaaca
Parents: c97950a
Author: Cory Johns <jo...@geek.net>
Authored: Wed Jan 23 16:27:09 2013 +0000
Committer: Tim Van Steenburgh <tv...@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)