##// END OF EJS Templates
Fixed issue with mixed locking notification and bad username
marcink -
r2750:30cafecb beta
parent child Browse files
Show More
@@ -110,9 +110,9 b' def pre_push(ui, repo, **kwargs):'
110 raise Exception('Missing data in repo.ui and os.environ')
110 raise Exception('Missing data in repo.ui and os.environ')
111
111
112 usr = User.get_by_username(username)
112 usr = User.get_by_username(username)
113
114 if locked_by[0] and usr.user_id != int(locked_by[0]):
113 if locked_by[0] and usr.user_id != int(locked_by[0]):
115 raise HTTPLockedRC(username, repository)
114 locked_by = User.get(locked_by[0]).username
115 raise HTTPLockedRC(repository, locked_by)
116
116
117
117
118 def pre_pull(ui, repo, **kwargs):
118 def pre_pull(ui, repo, **kwargs):
@@ -137,7 +137,8 b' def pre_pull(ui, repo, **kwargs):'
137 raise Exception('Missing data in repo.ui and os.environ')
137 raise Exception('Missing data in repo.ui and os.environ')
138
138
139 if locked_by[0]:
139 if locked_by[0]:
140 raise HTTPLockedRC(username, repository)
140 locked_by = User.get(locked_by[0]).username
141 raise HTTPLockedRC(repository, locked_by)
141
142
142
143
143 def log_pull_action(ui, repo, **kwargs):
144 def log_pull_action(ui, repo, **kwargs):
General Comments 0
You need to be logged in to leave comments. Login now