lib/sysrev/sysrev.js
function(systemId, revisionId, target, cb) {
    if (revisionId === EDITS) {
      _getOnDiskVersion(systemId, revisionId, target, cb);
    }
    else {
      findRevision(systemId, revisionId, function(err, rev) {
        if (err) { return cb(err); }
        if (rev === EDITS) {
          _getOnDiskVersion(systemId, revisionId, target, cb);
        }
        else {
          _getRevision(systemId, rev, target, cb);
        }
      });
    }
  }
function(systemId, revisionId, target, cb) {
    if (revisionId === EDITS) {
      _getOnDiskVersion(systemId, revisionId, target, cb);
    }
    else {
      findRevision(systemId, revisionId, function(err, rev) {
        if (err) { return cb(err); }
        if (rev === EDITS) {
          _getOnDiskVersion(systemId, revisionId, target, cb);
        }
        else {
          _getRevision(systemId, rev, target, cb);
        }
      });
    }
  }
function ( systemId , revisionId , target , cb ) { if ( revisionId === EDITS ) { _getOnDiskVersion ( systemId , revisionId , target , cb ) ; } else { findRevision ( systemId , revisionId , function ( err , rev ) { if ( err ) { return cb ( err ) ; } if ( rev === EDITS ) { _getOnDiskVersion ( systemId , revisionId , target , cb ) ; } else { _getRevision ( systemId , rev , target , cb ) ; } } ) ; } }
get a revision from the history, with abbreviation support
get a revision from the history with abbreviation support