This is an archive of the discontinued Mercurial Phabricator instance.

releasenotes: raise error when no filename specified
AbandonedPublic

Authored by rishabhmadan96 on Oct 1 2017, 7:22 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Earlier, not specifying filename with --rev raised a really long TypeError.
This patch just raises a small error to specify the filename.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

rishabhmadan96 created this revision.Oct 1 2017, 7:22 AM
pulkit added a subscriber: pulkit.Oct 1 2017, 7:26 AM

Can't we just output the releasenotes using ui.write() if no file name is specified. I sometimes wanted to check what releasenotes my commit will produce and I needed to mention a file.

In D873#14703, @pulkit wrote:

Can't we just output the releasenotes using ui.write() if no file name is specified. I sometimes wanted to check what releasenotes my commit will produce and I needed to mention a file.

Seems to be a good idea :). Maybe we can close this one and I'll just send a new patch right away.

rishabhmadan96 abandoned this revision.Oct 1 2017, 7:39 AM