保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
PAMapp/node_modules/jest-changed-files/build/hg.js
@@ -81,14 +81,20 @@
const env = {...process.env, HGPLAIN: '1'};
const adapter = {
  findChangedFiles: async (cwd, options) => {
    const includePaths = (options && options.includePaths) || [];
    var _options$includePaths;
    const includePaths =
      (_options$includePaths = options.includePaths) !== null &&
      _options$includePaths !== void 0
        ? _options$includePaths
        : [];
    const args = ['status', '-amnu'];
    if (options && options.withAncestor) {
      args.push('--rev', `min((!public() & ::.)+.)^`);
    } else if (options && options.changedSince) {
    if (options.withAncestor) {
      args.push('--rev', 'min((!public() & ::.)+.)^');
    } else if (options.changedSince) {
      args.push('--rev', `ancestor(., ${options.changedSince})`);
    } else if (options && options.lastCommit === true) {
    } else if (options.lastCommit === true) {
      args.push('--change', '.');
    }