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
Unknown Object (File)
Sat, Dec 21, 12:17 AM
Unknown Object (File)
Fri, Dec 20, 8:37 PM
Unknown Object (File)
Sun, Dec 8, 10:49 PM
Unknown Object (File)
Nov 20 2024, 8:31 AM
Unknown Object (File)
Nov 16 2024, 1:24 PM
Unknown Object (File)
Nov 12 2024, 3:07 AM
Unknown Object (File)
Nov 8 2024, 7:05 AM
Unknown Object (File)
Oct 28 2024, 12:40 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