diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f899df9a6f7..965759498c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - `[jest-runtime]` If `require` fails without a file extension, print all files that match with one ([#7160](https://github.com/facebook/jest/pull/7160)) - `[jest-haste-map]` Make `ignorePattern` optional ([#7166](https://github.com/facebook/jest/pull/7166)) - `[jest-runtime]` Remove `cacheDirectory` from `ignorePattern` for `HasteMap` if not necessary ([#7166](https://github.com/facebook/jest/pull/7166)) +- `[jest-changed-files]` Return correctly the changed files when using `lastCommit=true` on Mercurial repositories ([#XXX](https://github.com/facebook/jest/pull/XXX)) ### Fixes diff --git a/packages/jest-changed-files/src/hg.js b/packages/jest-changed-files/src/hg.js index f8429a605d90..7dacb454da10 100644 --- a/packages/jest-changed-files/src/hg.js +++ b/packages/jest-changed-files/src/hg.js @@ -41,7 +41,7 @@ const adapter: SCMAdapter = { } else if (options && options.changedSince) { args.push('--rev', `ancestor(., ${options.changedSince})`); } else if (options && options.lastCommit === true) { - args.push('-A'); + args.push('--change', '.'); } args.push(...includePaths);