Show More
@@ -139,7 +139,7 b' def forbidnewline(ui, repo, hooktype, no' | |||
|
139 | 139 | # changegroup that contains an unacceptable commit followed later |
|
140 | 140 | # by a commit that fixes the problem. |
|
141 | 141 | tip = repo['tip'] |
|
142 |
for rev in xrange( |
|
|
142 | for rev in xrange(repo.changelog.tiprev(), repo[node].rev() - 1, -1): | |
|
143 | 143 | c = repo[rev] |
|
144 | 144 | for f in c.files(): |
|
145 | 145 | if f in seen or f not in tip or f not in c: |
General Comments 0
You need to be logged in to leave comments.
Login now