This is an archive of the discontinued Mercurial Phabricator instance.

clean: check that there are no conflicts after
ClosedPublic

Authored by martinvonz on Jan 24 2020, 12:36 PM.

Details

Summary

As noted by Pulkit, there should never be any conflicts after doing a
clean update, so hg.clean() should never return True. Let's check
that assertion instead to clarify the code. The callers will now get a
None instead of a False returned, but that should be fine (both
result in a 0 exit status).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Jan 24 2020, 12:36 PM
pulkit accepted this revision.Jan 24 2020, 5:10 PM
This revision is now accepted and ready to land.Jan 24 2020, 5:10 PM
This revision was automatically updated to reflect the committed changes.