Example #1
0
File: Meta.php Project: ptlis/vcs
 /**
  * Get a changeset for the specified revision
  *
  * @param RevisionLogInterface $revisionLog
  *
  * @return RevisionInterface
  */
 public function getRevision(RevisionLogInterface $revisionLog)
 {
     $result = $this->executor->execute(array('diff', '-c', $revisionLog->getIdentifier()));
     $parser = new Parser();
     $changeset = $parser->parseLines($result->getStdOutLines(), Parser::VCS_SVN);
     return new Revision($revisionLog, $changeset);
 }
Example #2
0
File: Meta.php Project: ptlis/vcs
 /**
  * Get a changeset for the specified revision
  *
  * @param RevisionLogInterface $revisionLog
  *
  * @return RevisionInterface
  */
 public function getRevision(RevisionLogInterface $revisionLog)
 {
     $result = $this->executor->execute(array('format-patch', '-1', '--stdout', $revisionLog->getIdentifier()));
     $parser = new Parser();
     $changeset = $parser->parseLines($result->getStdOutLines(), Parser::VCS_GIT);
     return new Revision($revisionLog, $changeset);
 }