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/08/14 17:22:46 UTC
allura git commit: A 96% file match doesn't count as a rename,
only 100%
Repository: allura
Updated Branches:
refs/heads/master c0e2faa2f -> 40b561ca1
A 96% file match doesn't count as a rename, only 100%
The R096 was present from the first commit with this rename detection
logic. Must've just been a mistake. Can't think of any reason it would
be needed :)
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/40b561ca
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/40b561ca
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/40b561ca
Branch: refs/heads/master
Commit: 40b561ca1140a71cb809549bb130cd9b55959986
Parents: c0e2faa
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Fri Aug 14 14:53:46 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri Aug 14 14:53:46 2015 +0000
----------------------------------------------------------------------
ForgeGit/forgegit/model/git_repo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/40b561ca/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index a8d2e5a..8229b7e 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -454,7 +454,7 @@ class GitImplementation(M.RepositoryImplementation):
# merge commits don't have any --name-status output
if len(commit_lines) > 1:
name_stat_parts = commit_lines[1].split(' ')
- if name_stat_parts[0] in ['R100', 'R096']:
+ if name_stat_parts[0] == 'R100':
renamed['from'] = name_stat_parts[1]
renamed['to'] = name_stat_parts[2]
yield (git.Commit(self._git, gitdb.util.hex_to_bin(hexsha)), refs, renamed)