function(systemId, cb) {
    var repoPath = _meta.repoPath(systemId);
    getDeployedTargets(systemId, function(err, targets) {
      if (err) { return cb(err); }
      git.listRevisions(repoPath, function(err, revisions) {
        revisions.forEach(function(revision) {
          var deployedTo = _.find(targets, function(target) { return target.commit === revision.id; });
          if (deployedTo) {
            revision.deployedTo = deployedTo.env;
          }
        });
        cb(err, revisions);
      });
    });
  }
function(systemId, cb) {
    var repoPath = _meta.repoPath(systemId);
    getDeployedTargets(systemId, function(err, targets) {
      if (err) { return cb(err); }
      git.listRevisions(repoPath, function(err, revisions) {
        revisions.forEach(function(revision) {
          var deployedTo = _.find(targets, function(target) { return target.commit === revision.id; });
          if (deployedTo) {
            revision.deployedTo = deployedTo.env;
          }
        });
        cb(err, revisions);
      });
    });
  }
function ( systemId , cb ) { var repoPath = _meta . repoPath ( systemId ) ; getDeployedTargets ( systemId , function ( err , targets ) { if ( err ) { return cb ( err ) ; } git . listRevisions ( repoPath , function ( err , revisions ) { revisions . forEach ( function ( revision ) { var deployedTo = _ . find ( targets , function ( target ) { return target . commit === revision . id ; } ) ; if ( deployedTo ) { revision . deployedTo = deployedTo . env ; } } ) ; cb ( err , revisions ) ; } ) ; } ) ; }
list all of the available revisions in the system
list all of the available revisions in the system