Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --nocache option to force a bugzilla query. #106

Merged
merged 1 commit into from Jan 8, 2014
Merged

Add --nocache option to force a bugzilla query. #106

merged 1 commit into from Jan 8, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jan 8, 2014

When a bugzilla entry is changed the script might not pick it up due to caching. You can already force requerying by re-compiling the script (or e.g. running via --force with RDMD), but this should be a runtime option, not a compile-time one.

I've named it nocache rather than force since the latter could be confusing when called via RDMD, e.g.:

rdmd --force changed.d --force --start=2013-11-05

@@ -181,7 +187,7 @@ int main(string[] args)
string cachePath = getCachePath(to!string(start), to!string(end));
debug stderr.writefln("Cache file: %s\nCache file found: %s", cachePath, cachePath.exists);
string changeLog;
if (cachePath.exists)
if (!nocache && cachePath.exists)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I know, "not-no" ain't pretty. Couldn't think of a better name at these late hours.

MartinNowak added a commit that referenced this pull request Jan 8, 2014
Add --nocache option to force a bugzilla query.
@MartinNowak MartinNowak merged commit a36e702 into dlang:master Jan 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants