splitting a commin in 2 different commits
Craig Ozancin
c.ozancin at gmail.com
Wed Sep 8 18:24:04 UTC 2021
Try uncommit. Hg uncommit -i will let you selectively pick files or file
sections to uncommit.
On Wed, Sep 8, 2021, 9:05 AM Alessandro Dentella <sandro.dentella at gmail.com>
wrote:
>
> Hi,
>
> I'm convinced I did it in the past but now it clearly doesn't work...
>
> I committed too many files in a changeset that is still in draft state.
> I believe the normal way to fix it should be to amend -X, but id doesn't
> seem to
> work.
>
> How am I wrong? should I go another way?
>
> $ hg st --ch tip
> M 01-traefik/README.traefik
> M 01-traefik/install
> A 00-mk8s-plugins/README.rst ## should not be in this commit
> A 01-traefik/basicauth.yaml
> A 01-traefik/dashboard-route.yaml
> A 01-traefik/upgrade
> A 01-traefik/users
> A 01-traefik/values-traefik.yaml
> R 00-helm/README.rst ## should not be in this commit
> R 01-traefik/reload
> R 01-traefik/traefik-values.yaml
>
> $ hg amend -X 00-mk8s-plugins/ -X 00-helm
> $ hg st
> ? debug/debug.reset
> $ hg --version
> Mercurial SCM Distribuito (versione 5.7.1) (tried also 5.9)
>
> [BTW: -X -I work correctly in qrefresh, but I'm using topics now and don't
> use
> queues normally anymore]
>
> sandro
> *:-)
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210908/4ecbebb0/attachment-0002.html>
More information about the Mercurial
mailing list