Sono consapevole Mercurial for Beginners: The Definitive Practical Guide e risposte come Mercurial merge branches? (abort: push creates new remote branches)Per annullare "abortire: spinta crea nuove teste remote sul ramo" in Mercurial
Qui ho inavvertitamente creato una situazione in cui Mercurial vuole creare una nuova testa a distanza. Qual è il modo migliore per annullare questo e lasciare traccia minima o nulla di questo errore sul lato remoto?
###> hg push
pushing to http://example.com
searching for changes
abort: push creates new remote heads on branch 'default'!
(did you forget to merge? use push -f to force)
###> hg revert --all -r tip
###> hg update -C
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
###> hg incoming
comparing with http://example.com
searching for changes
no changes found
###> hg summary
parent: 488:e3db024fe901 tip
Misc.
branch: default
commit: (clean)
update: 6 new changesets, 2 branch heads (merge)
###> hg pull
pulling from http://example.com
searching for changes
no changes found
###> hg glog
@ changeset: 488:e3db024fe901
| tag: tip
| summary: Misc.
|
o changeset: 487:b207579b9d41
| parent: 480:ce775708800c
| summary: Misc.
|
| o changeset: 486:59a7a5b34c7f
| | user: other
| | summary: fixes
| |
| o changeset: 485:b28264333e18
| | user: other
| | summary: binary
Se mi fondo, è una sorta di sembra ok:
hg merge
abort: outstanding uncommitted merges
Ma hg diff
mostra tutti i tipi di modifiche non ce l'ho fatta. Sono disposto a ri-applicare le mie modifiche ... come posso riportare tutto a un unico consiglio, abbandonando tutte le modifiche locali?
ciò che fa di uscita in uscita hg? – Tom