##// END OF EJS Templates
win32text: rename forbidcrlforcr() function
Patrick Mezard -
r6483:0a803195 default
parent child Browse files
Show More
@@ -96,7 +96,7 b' def macencode(s, cmd):'
96 'macencode:': macencode,
96 'macencode:': macencode,
97 }
97 }
98
98
99 def forbidcrlforcr(ui, repo, hooktype, node, newline, **kwargs):
99 def forbidnewline(ui, repo, hooktype, node, newline, **kwargs):
100 halt = False
100 halt = False
101 for rev in xrange(repo.changelog.rev(bin(node)), repo.changelog.count()):
101 for rev in xrange(repo.changelog.rev(bin(node)), repo.changelog.count()):
102 c = repo.changectx(rev)
102 c = repo.changectx(rev)
@@ -131,10 +131,10 b' def forbidcrlforcr(ui, repo, hooktype, n'
131 return halt
131 return halt
132
132
133 def forbidcrlf(ui, repo, hooktype, node, **kwargs):
133 def forbidcrlf(ui, repo, hooktype, node, **kwargs):
134 return forbidcrlforcr(ui, repo, hooktype, node, '\r\n', **kwargs)
134 return forbidnewline(ui, repo, hooktype, node, '\r\n', **kwargs)
135
135
136 def forbidcr(ui, repo, hooktype, node, **kwargs):
136 def forbidcr(ui, repo, hooktype, node, **kwargs):
137 return forbidcrlforcr(ui, repo, hooktype, node, '\r', **kwargs)
137 return forbidnewline(ui, repo, hooktype, node, '\r', **kwargs)
138
138
139 def reposetup(ui, repo):
139 def reposetup(ui, repo):
140 if not repo.local():
140 if not repo.local():
General Comments 0
You need to be logged in to leave comments. Login now