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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
222e09fbcb
commit
cfb77148f7
@@ -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
|
// # 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 hgLog = cp.execSync(hgLogCommand, {cwd: __dirname}).toString();
|
||||||
|
|
||||||
const diffRe = /^D\d+/;
|
const diffRe = /^D\d+/;
|
||||||
|
|||||||
Reference in New Issue
Block a user