def changeset_link_text(self):
        if 0 != self.line:
            return 'Changeset @%s#L%d (in %s)' % (self.revision, self.line,
                                                  self.path)
        else:
            return 'Changeset @%s' % self.revision