Skip to content

Commit

Permalink
fix revset
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Feb 8, 2022
1 parent 979530b commit e714e6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions e2e/__tests__/jestChangedFiles.test.ts
Expand Up @@ -47,8 +47,6 @@ function gitCreateBranch(branchName: string, dir: string) {
run(`git branch ${branchName}`, dir);
}

jest.retryTimes(3);

beforeEach(() => cleanup(DIR));
afterEach(() => cleanup(DIR));

Expand Down
4 changes: 3 additions & 1 deletion packages/jest-changed-files/src/hg.ts
Expand Up @@ -18,7 +18,9 @@ const adapter: SCMAdapter = {

const args = ['status', '-amnu'];
if (options.withAncestor) {
args.push('--rev', 'min((!public() & ::.)+.)^');
// working suggestion
// args.push('--rev', 'min((not public() and ancestors(.))^ or .^)');
args.push('--rev', 'min((!public() & ::.)+.)^1');
} else if (options.changedSince) {
args.push('--rev', `ancestor(., ${options.changedSince})`);
} else if (options.lastCommit === true) {
Expand Down

0 comments on commit e714e6e

Please sign in to comment.