##// END OF EJS Templates
style: adjust whitespaces in webutil.py...
av6 -
r25999:1c75249e default
parent child Browse files
Show More
@@ -203,7 +203,7 b' def cleanpath(repo, path):'
203 path = path.lstrip('/')
203 path = path.lstrip('/')
204 return pathutil.canonpath(repo.root, '', path)
204 return pathutil.canonpath(repo.root, '', path)
205
205
206 def changeidctx (repo, changeid):
206 def changeidctx(repo, changeid):
207 try:
207 try:
208 ctx = repo[changeid]
208 ctx = repo[changeid]
209 except error.RepoError:
209 except error.RepoError:
@@ -212,11 +212,11 b' def changeidctx (repo, changeid):'
212
212
213 return ctx
213 return ctx
214
214
215 def changectx (repo, req):
215 def changectx(repo, req):
216 changeid = "tip"
216 changeid = "tip"
217 if 'node' in req.form:
217 if 'node' in req.form:
218 changeid = req.form['node'][0]
218 changeid = req.form['node'][0]
219 ipos=changeid.find(':')
219 ipos = changeid.find(':')
220 if ipos != -1:
220 if ipos != -1:
221 changeid = changeid[(ipos + 1):]
221 changeid = changeid[(ipos + 1):]
222 elif 'manifest' in req.form:
222 elif 'manifest' in req.form:
@@ -227,7 +227,7 b' def changectx (repo, req):'
227 def basechangectx(repo, req):
227 def basechangectx(repo, req):
228 if 'node' in req.form:
228 if 'node' in req.form:
229 changeid = req.form['node'][0]
229 changeid = req.form['node'][0]
230 ipos=changeid.find(':')
230 ipos = changeid.find(':')
231 if ipos != -1:
231 if ipos != -1:
232 changeid = changeid[:ipos]
232 changeid = changeid[:ipos]
233 return changeidctx(repo, changeid)
233 return changeidctx(repo, changeid)
General Comments 0
You need to be logged in to leave comments. Login now