Skip to content

Commit

Permalink
alternative revset
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Feb 8, 2022
1 parent 061dbcf commit e98a36d
Show file tree
Hide file tree
Showing 2 changed files with 2 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
3 changes: 2 additions & 1 deletion packages/jest-changed-files/src/hg.ts
Expand Up @@ -20,7 +20,8 @@ const adapter: SCMAdapter = {

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

0 comments on commit e98a36d

Please sign in to comment.