From cfb77148f7f98cd2bc47a5139a5ceb24b4840ab3 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 2 Apr 2020 02:18:50 -0700 Subject: [PATCH] Fix changelog generation search directory Summary: Fix issue where not the full sonar repo was search when looking for Diffs with a changelog entry. (note that we don't use absolute paths as that gaves problems in the past on CI where a sparse checkout happens and the hg root turned out to be different) Reviewed By: passy Differential Revision: D20793800 fbshipit-source-id: a77e1602e00127ba2d831a4c6392e2f1984a4fc6 --- desktop/scripts/generate-changelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/scripts/generate-changelog.js b/desktop/scripts/generate-changelog.js index 10520e225..50006fb79 100755 --- a/desktop/scripts/generate-changelog.js +++ b/desktop/scripts/generate-changelog.js @@ -42,7 +42,7 @@ console.log( ); // # get all commit summaries since last release | find all changelog entries, but make sure there is only one line per commit by temporarily replacing newlines -const hgLogCommand = `hg log -r "${firstCommit}::${lastCommit} and file('../*')" --template "{phabdiff} - {sub('\n','${newlineMarker}', desc)}\n"`; +const hgLogCommand = `hg log -r "${firstCommit}::${lastCommit} and file('glob:../../**/*')" --template "{phabdiff} - {sub('\n','${newlineMarker}', desc)}\n"`; const hgLog = cp.execSync(hgLogCommand, {cwd: __dirname}).toString(); const diffRe = /^D\d+/;