Show More
@@ -110,9 +110,9 b' def pre_push(ui, repo, **kwargs):' | |||
|
110 | 110 | raise Exception('Missing data in repo.ui and os.environ') |
|
111 | 111 | |
|
112 | 112 | usr = User.get_by_username(username) |
|
113 | ||
|
114 | 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 | 118 | def pre_pull(ui, repo, **kwargs): |
@@ -137,7 +137,8 b' def pre_pull(ui, repo, **kwargs):' | |||
|
137 | 137 | raise Exception('Missing data in repo.ui and os.environ') |
|
138 | 138 | |
|
139 | 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 | 144 | def log_pull_action(ui, repo, **kwargs): |
General Comments 0
You need to be logged in to leave comments.
Login now