Page MenuHomePhabricator

Fix a commit hook issue with the initial commit to Mercurial repositories
ClosedPublic

Authored by epriestley on Dec 23 2013, 5:30 PM.
Tags
None
Referenced Files
F15513673: D7817.diff
Thu, Apr 17, 8:46 PM
F15505799: D7817.id17690.diff
Tue, Apr 15, 5:57 AM
F15498675: D7817.id17693.diff
Sun, Apr 13, 1:51 PM
F15479633: D7817.id.diff
Tue, Apr 8, 8:31 AM
F15476959: D7817.diff
Mon, Apr 7, 10:37 AM
F15476166: D7817.id17693.diff
Mon, Apr 7, 4:33 AM
F15473169: D7817.diff
Sat, Apr 5, 7:51 PM
F15461045: D7817.id.diff
Tue, Apr 1, 4:38 AM
Subscribers

Details

Summary

Fixes T4257. The hg heads command exits with an error code and no output in an empty repository.

Just ignore the error code: we don't have a great way to distinguish between errors, and we ran another hg command moments before, so we have at least some confidence it isn't a PATH sort of thing.

Test Plan

Created a new Mercurial repository and pushed to hit the error in T4257. Applied this fix and got a clean push with an accurate push log.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped