Git backend implementation.
Git repository backend
Returns GitChangeset object representing commit from git repository at the given revision or head (most recent commit) if None given.
Return last n number of MercurialChangeset specified by limit attribute if None is given whole list of revisions is returned :param limit: int limit or None
Tries to pull changes from external location.
Runs given cmd as git command and returns tuple (returncode, stdout, stderr).
Note
This method exists only until log/blame functionality is implemented at Dulwich (see https://bugs.launchpad.net/bugs/645142). Parsing os command’s output is road to hell...
Parameters: |
|
---|
Bases: vcs.backends.base.BaseChangeset
Represents state of the repository at single revision.
Returns same as raw_id attribute.
Returns raw string identifing this changeset (40-length sha)
Returns shortened version of raw_id (first 12 characters)
Returns integer representing changeset.
Returns list of parents changesets.
Returns list of added FileNode objects.
Returns list of changed FileNode objects.
Returns list of removed RemovedFileNode objects.
Note
Remember that those RemovedFileNode instances are only dummy FileNode objects and trying to access most of it’s attributes or methods would raise NodeError exception.
Returns a list of three element tuples with lineno,changeset and line
TODO: This function now uses os underlying ‘git’ command which is generally not good. Should be replaced with algorithm iterating commits.
Returns last commit of the file at the given path.
Returns content of the file at given path.
Returns history of file as reversed list of Changeset objects for which file at given path has been modified.
TODO: This function now uses os underlying ‘git’ and ‘grep’ commands which is generally not good. Should be replaced with algorithm iterating commits.
Returns message of the last commit related to file at the given path.
Returns size of the file at given path.
Similar to os.walk method. Insted of filesystem it walks through changeset starting at given topurl. Returns generator of tuples (topnode, dirnodes, filenodes).