def get_changeset(self, revision=None):
        """
        Returns ``GitChangeset`` object representing commit from git repository
        at the given revision or head (most recent commit) if None given.
        """
        if isinstance(revision, GitChangeset):
            return revision
        revision = self._get_revision(revision)
        changeset = GitChangeset(repository=self, revision=revision)
        return changeset
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
Returns ``GitChangeset`` object representing commit from git repository
        at the given revision or head (most recent commit) if None given.