code: def get_changeset(self, revision=None):
          
          if isinstance(revision, GitChangeset):
              return revision
          revision = self._get_revision(revision)
          changeset = GitChangeset(repository=self, revision=revision)
          return changeset
docs: Returns ``GitChangeset`` object representing commit from git repository
          at the given revision or head (most recent commit) if None given.