def get_revision(cls, location):
        """
        Return the repository-local changeset revision number, as an integer.
        """
        current_revision = cls.run_command(
            ['parents', '--template={rev}'],
            show_stdout=False, cwd=location).strip()
        return current_revision

        Return the repository-local changeset revision number, as an integer.
        
product/gradle-plugin/src/main/python/pip/_internal/vcs/mercurial.py