This is an archive of the discontinued Mercurial Phabricator instance.

repack: exit 0 if a repack is in progress
ClosedPublic

Authored by durham on Dec 12 2017, 4:58 PM.
Tags
None
Subscribers
None

Details

Reviewers
phillco
Group Reviewers
Restricted Project
Commits
rFBHGX2c1f0d55da3a: repack: exit 0 if a repack is in progress
Summary

Previously we raised a LockHeld exception if a repack was already in progress,
which caused hg repack to exit non-zero. This changes it to exit 0 since a
repack is in progress to accomplish the desired result. This is useful in
automation that wants to run repack to maintain the repository but depends on
exit codes to know if a command succeeded or not.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durham created this revision.Dec 12 2017, 4:58 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptDec 12 2017, 4:58 PM
durham updated this revision to Diff 4388.Dec 12 2017, 5:00 PM
durham updated this revision to Diff 4389.
phillco accepted this revision.Dec 12 2017, 7:15 PM
This revision is now accepted and ready to land.Dec 12 2017, 7:15 PM
This revision was automatically updated to reflect the committed changes.