| | |
| | | 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', '.'); |
| | | } |
| | | |