splitting a commin in 2 different commits

Alessandro Dentella sandro.dentella at gmail.com
Sun Sep 5 20:00:17 UTC 2021


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
*:-)



More information about the Mercurial mailing list