Skip to content

Commit

Permalink
Switching nodir and removing consolelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Apr 29, 2018
1 parent 719ac5d commit 9a76fea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Hg.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function cloneMultipleAndMerge(from, to, pythonPath) {
await combinedRepo.update({ clean: true, revision: 'default' });

const files = await Globby(['*', '!.hg'], {
expandDirectories: true,
nodir: false,
dot: true,
cwd: combinedRepo.path,
});
Expand Down
4 changes: 2 additions & 2 deletions src/HgRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class HgRepo {
await Command.run(cloneCmd);

// Remove .hgtags from each folder
const files = await Globby(['**/.hgtags'], { expandDirectories: true, dot: true, cwd: path });
const files = await Globby(['**/.hgtags'], { nodir: false, dot: true, cwd: path });

if (files.length) {
await Promise.all(files.map(hgpath => Fs.remove(Path.resolve(path, hgpath))));
Expand All @@ -108,7 +108,7 @@ class HgRepo {

// Rename .hgignore to .gitignore, and remove the line syntax:*
const hgIgnoreFiles = await Globby(['**/.hgignore'], {
expandDirectories: true,
nodir: false,
dot: true,
cwd: path,
});
Expand Down
2 changes: 0 additions & 2 deletions tests/Hg.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ Test('Cloning multiple live Hg repositories into one.', async (assert) => {
DirectoryCompare.compare(Path.join(testDirectory, 'whoosh'), Path.join(outputDirectory, 'whoosh'), exclude),
DirectoryCompare.compare(Path.join(testDirectory, 'hg-git'), Path.join(outputDirectory, 'hg-git'), exclude),
]).spread((compare1, compare2) => {
console.log(compare1)
console.log(compare2)
assert.true(compare1.same, 'First repo didnt match');
assert.true(compare2.same, 'Second repo did not match');
});
Expand Down

0 comments on commit 9a76fea

Please sign in to comment.