equal
deleted
inserted
replaced
110 def cleanpath(repo, path): |
110 def cleanpath(repo, path): |
111 path = path.lstrip('/') |
111 path = path.lstrip('/') |
112 return util.canonpath(repo.root, '', path) |
112 return util.canonpath(repo.root, '', path) |
113 |
113 |
114 def changectx(repo, req): |
114 def changectx(repo, req): |
|
115 changeid = "tip" |
115 if 'node' in req.form: |
116 if 'node' in req.form: |
116 changeid = req.form['node'][0] |
117 changeid = req.form['node'][0] |
117 elif 'manifest' in req.form: |
118 elif 'manifest' in req.form: |
118 changeid = req.form['manifest'][0] |
119 changeid = req.form['manifest'][0] |
119 else: |
|
120 changeid = repo.changelog.count() - 1 |
|
121 |
120 |
122 try: |
121 try: |
123 ctx = repo[changeid] |
122 ctx = repo[changeid] |
124 except RepoError: |
123 except RepoError: |
125 man = repo.manifest |
124 man = repo.manifest |