[PATCH] subrepo: make it possible to update when a subrepo revision is missing
mpm at selenic.com
Sun Feb 9 18:19:18 CST 2014
On Sun, 2014-02-09 at 18:45 +0100, Angel Ezquerra wrote:
> # HG changeset patch
> # User Angel Ezquerra <angel.ezquerra at gmail.com>
> # Date 1391950775 -3600
> # Sun Feb 09 13:59:35 2014 +0100
> # Node ID c801bcfe8b617c7e46cdaec864271d52d04dece4
> # Parent b0638b5b004d575faeb363cd6028d356dc146bc2
> subrepo: make it possible to update when a subrepo revision is missing
> Up until now, updating to a revision that refered to a missing subrepo revision
> would fail (after trying to pull it from the remote subrepo source).
> This made it very easy to get into a situation in which it was no longer
> possible to update to a revision in the parent repo (for example if the user
> used MQ or rebase on the subrepo).
> With this change we now show a prompt which informs the user of the problem and
> lets it choose what to do. By default the update will be aborted (as it did
> before this patch. However the user will be able to update anyway if he wants
Is there anything to prevent the user from committing after this
happens? That could be disastrous. Perhaps we can use the existing
'interrupted update' state to more safely allow broken checkouts (both
for subrepos and damaged revlogs).
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel