Questions tagged [mercurial-amend]

3 questions
17
votes
1 answer

Amending a "public" changeset in Mercurial

I'd like to amend my last commit, but running hg commit --amend gives me abort: cannot amend public changesets even though I know that it's safe to edit the changeset. How can I change the phase of my last commit and/or tell Mercurial that it's…
Sophie Alpert
  • 139,698
  • 36
  • 220
  • 238
1
vote
0 answers

How to use `hg amend` with HgGit to avoid `unknown revision` errors

Whenever I use hg amend or other commands that change history (for example hg rebase -s ... -d ...), certain commands, including hg push start to fail with abort: unknown revision error: $ hg push -B my-branch pushing to…
Petr
  • 62,528
  • 13
  • 153
  • 317
1
vote
1 answer

hg commit amend creating new branches

While trying to use the 'hg commit --amend' feature for change the commit message in repo ... I have created the new branch named as 'hg_amend' and i have commited some changes and pushed to repo. Again i need to do some changes related to that…
Muthuvel
  • 506
  • 2
  • 6
  • 16