This is an archive of the discontinued Mercurial Phabricator instance.

branchmap: don't add branch entries if there are no heads
ClosedPublic

Authored by av6 on Feb 7 2022, 1:41 AM.

Details

Summary

We definitely don't want any empty entries to be present in repo.branchmap()
just for the sake of not breaking test-notify.t.

No test changes required because the previous patch made notify extension to
not raise any tracebacks in case of RepoLookupErrors.

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

av6 created this revision.Feb 7 2022, 1:41 AM
Alphare accepted this revision.Feb 7 2022, 8:40 AM
This revision is now accepted and ready to land.Feb 7 2022, 8:40 AM
This revision was automatically updated to reflect the committed changes.