##// END OF EJS Templates
hooks: make_lock is tristate...
Mads Kiilerich -
r3672:55585c86 beta
parent child Browse files
Show More
@@ -143,7 +143,7 b' def log_pull_action(ui, repo, **kwargs):'
143 kw.update(ex)
143 kw.update(ex)
144 callback(**kw)
144 callback(**kw)
145
145
146 if ex.make_lock:
146 if ex.make_lock is not None and ex.make_lock:
147 Repository.lock(Repository.get_by_repo_name(ex.repository), user.user_id)
147 Repository.lock(Repository.get_by_repo_name(ex.repository), user.user_id)
148 #msg = 'Made lock on repo `%s`' % repository
148 #msg = 'Made lock on repo `%s`' % repository
149 #sys.stdout.write(msg)
149 #sys.stdout.write(msg)
@@ -202,7 +202,7 b' def log_push_action(ui, repo, **kwargs):'
202 kw.update(ex)
202 kw.update(ex)
203 callback(**kw)
203 callback(**kw)
204
204
205 if not ex.make_lock:
205 if ex.make_lock is not None and not ex.make_lock:
206 Repository.unlock(Repository.get_by_repo_name(ex.repository))
206 Repository.unlock(Repository.get_by_repo_name(ex.repository))
207 msg = 'Released lock on repo `%s`\n' % ex.repository
207 msg = 'Released lock on repo `%s`\n' % ex.repository
208 sys.stdout.write(msg)
208 sys.stdout.write(msg)
General Comments 0
You need to be logged in to leave comments. Login now