Show More
@@ -123,7 +123,7 b' def unbundle(web, req):' | |||
|
123 | 123 | ssl_req = web.configbool('web', 'push_ssl', True) |
|
124 | 124 | if ssl_req: |
|
125 | 125 | if req.env.get('wsgi.url_scheme') != 'https': |
|
126 |
bail |
|
|
126 | bail('ssl required\n') | |
|
127 | 127 | return |
|
128 | 128 | proto = 'https' |
|
129 | 129 | else: |
@@ -131,7 +131,7 b' def unbundle(web, req):' | |||
|
131 | 131 | |
|
132 | 132 | # do not allow push unless explicitly allowed |
|
133 | 133 | if not web.check_perm(req, 'push', False): |
|
134 |
bail |
|
|
134 | bail('push not authorized\n', | |
|
135 | 135 | headers={'status': '401 Unauthorized'}) |
|
136 | 136 | return |
|
137 | 137 | |
@@ -143,7 +143,7 b' def unbundle(web, req):' | |||
|
143 | 143 | |
|
144 | 144 | # fail early if possible |
|
145 | 145 | if not check_heads(): |
|
146 |
bail |
|
|
146 | bail('unsynced changes\n') | |
|
147 | 147 | return |
|
148 | 148 | |
|
149 | 149 | req.respond(HTTP_OK, HGTYPE) |
@@ -163,7 +163,7 b' def unbundle(web, req):' | |||
|
163 | 163 | try: |
|
164 | 164 | if not check_heads(): |
|
165 | 165 | req.write('0\n') |
|
166 |
req.write( |
|
|
166 | req.write('unsynced changes\n') | |
|
167 | 167 | return |
|
168 | 168 | |
|
169 | 169 | fp.seek(0) |
General Comments 0
You need to be logged in to leave comments.
Login now