[PATCH 2 of 2 V3] revert: add support for reverting subrepos

Angel Ezquerra angel.ezquerra at gmail.com
Sat Oct 15 13:02:41 CDT 2011


On Oct 15, 2011 8:00 PM, "Matt Mackall" <mpm at selenic.com> wrote:
>
> On Sat, 2011-10-15 at 01:10 +0200, Angel Ezquerra wrote:
> > # HG changeset patch
> > # User Angel Ezquerra <angel.ezquerra at gmail.com>
> > # Date 1318633615 -7200
> > # Node ID f4d050e992a90bdc386498c201dbab5b9a7ddde2
> > # Parent  adb7eb4d36eaa4a67b586357e1ec6de6435ab587
> > revert: add support for reverting subrepos
> >
> > Reverting a subrepo is done by updating it to the revision that is
selected on
> > the parent repo .hgsubstate file.
> >
> > * ISSUES/TODO:
> > - Added and removed subrepos are not handled (that is left for another
patch).
> >
> > - This version of this patch only allows reverting a subrepo if the
--no-backup
> > flag is used, since no backups are performed on the contents of the
subrepo. It
> > could be possible to add support for backing up the subrepo contents by
first
> > performing a "revert --all" on the subrepo, and then updating the
subrepo to
> > the proper revision.
> >
> > - The behavior of the --all flag has not been changed: The --all flag
will not
> > revert the state of the subrepos. In order to support the --all flag we
must
> > also support not using the --no-backup flag. Otherwise it will not be
possible
> > to use --all without the --no-backup flag.
>
> There's a bit too much uncertainty here still. Let's revisit this after
> Nov 1st.
>
> --
> Mathematics is the supreme nostalgia of our time.

Ok, thank you.

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111015/ecaf9c6a/attachment.html>


More information about the Mercurial-devel mailing list