This is an archive of the discontinued Mercurial Phabricator instance.

destutil: provide hint on rebase+merge for how to specify destination/rev
ClosedPublic

Authored by spectral on Oct 8 2019, 2:17 PM.

Details

Summary

Without a destination specified, rebase and merge attempt to identify a good
candidate; this fails if there's too many heads, the heads have a bookmark, or
other reasons.

Complicating the issue, users may have specified -t, thinking it means target,
and are confused when the error message says that they need to specify an
explicit rev or explicit destination - they feel like they already have.

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

spectral created this revision.Oct 8 2019, 2:17 PM
pulkit added a subscriber: pulkit.Oct 8 2019, 3:35 PM

IIUC, you mean unambiguous instead of ambiguous in the commit message? Re-reading I am confused.

spectral retitled this revision from destutil: add mechanism to specify ambiguous destination on rebase and merge to destutil: provide hint on rebase+merge for how to specify destination/rev.Oct 8 2019, 4:49 PM
spectral edited the summary of this revision. (Show Details)

IIUC, you mean unambiguous instead of ambiguous in the commit message? Re-reading I am confused.

Updated the message, see if this works better?

pulkit accepted this revision.Oct 8 2019, 5:03 PM
This revision is now accepted and ready to land.Oct 8 2019, 5:03 PM