Skip to content

Commit

Permalink
Use HGPLAIN=1 instead of --root-relative
Browse files Browse the repository at this point in the history
Reviewed By: voideanvalue

Differential Revision: D3315076

fbshipit-source-id: fe6c571eef0b103e09744daf84ace00a24113832
  • Loading branch information
cpojer authored and Facebook Github Bot 1 committed May 18, 2016
1 parent c28ad40 commit 49e5230
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/jest-changed-files/src/hg.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ const childProcess = require('child_process');

function findChangedFiles(cwd, options) {
return new Promise((resolve, reject) => {
const args = ['status', '--root-relative', '-amn'];
const args = ['status', '-amn'];
if (options && options.withAncestor) {
args.push('--rev', 'ancestor(.^)');
}
const child = childProcess.spawn('hg', args, {cwd});

const child = childProcess.spawn('hg', args, {
cwd,
env: {
HGPLAIN: 1,
},
});
let stdout = '';
let stderr = '';
child.stdout.on('data', data => stdout += data);
Expand Down

0 comments on commit 49e5230

Please sign in to comment.