Added the display of the commit parents in the changelog view.

The old commits will not have the parents displayed as already cached in the DB, but the new will get them.
This commit is contained in:
Loïc d'Anterroches
2011-01-24 14:20:33 +01:00
parent 390c9b5048
commit 116a7e34db
5 changed files with 55 additions and 4 deletions

View File

@@ -420,6 +420,21 @@ class IDF_Scm
return null;
}
/**
* Given a changelog parsed node, returns extra data.
*
* For example, if the node is a commit object from git, it will a
* stdClass object with the parents array. The extra value could
* then be the parent(s) commit(s).
*
* @param stdClass Commit object/Parse object
* @return array Extra properties
*/
public function getExtraProperties($obj)
{
return array();
}
/**
* Generate a zip archive at a given commit, wrapped in a HTTP response, suitable for pushing to client.
*