Show More
@@ -772,8 +772,11 b' class hgweb(object):' | |||||
772 | def changectx(self, req): |
|
772 | def changectx(self, req): | |
773 | if req.form.has_key('node'): |
|
773 | if req.form.has_key('node'): | |
774 | changeid = req.form['node'][0] |
|
774 | changeid = req.form['node'][0] | |
|
775 | elif req.form.has_key('manifest'): | |||
|
776 | changeid = req.form['manifest'][0] | |||
775 | else: |
|
777 | else: | |
776 |
changeid = |
|
778 | changeid = self.repo.changelog.count() - 1 | |
|
779 | ||||
777 | try: |
|
780 | try: | |
778 | ctx = self.repo.changectx(changeid) |
|
781 | ctx = self.repo.changectx(changeid) | |
779 | except hg.RepoError: |
|
782 | except hg.RepoError: | |
@@ -848,8 +851,7 b' class hgweb(object):' | |||||
848 | self.do_changelog(req, shortlog = True) |
|
851 | self.do_changelog(req, shortlog = True) | |
849 |
|
852 | |||
850 | def do_changeset(self, req): |
|
853 | def do_changeset(self, req): | |
851 | ctx = self.repo.changectx(req.form['node'][0]) |
|
854 | req.write(self.changeset(self.changectx(req))) | |
852 | req.write(self.changeset(ctx)) |
|
|||
853 |
|
855 | |||
854 | def do_manifest(self, req): |
|
856 | def do_manifest(self, req): | |
855 | req.write(self.manifest(self.changectx(req), |
|
857 | req.write(self.manifest(self.changectx(req), |
General Comments 0
You need to be logged in to leave comments.
Login now