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