Uso mas git (por el trabajo) que mercurial.

Hize un branch en un proyecto para hacer un feature.

[email protected] ~/dev/py-cfdi
$ hg push --new-branch
pushing to ssh://[email protected]/zodman/py-cfdi
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 3 changes to 3 files

Lo integramos

[email protected] ~/dev/py-cfdi
$ hg branches
TimbradoDigital               16:48dd0b3b4a44
default                       15:08cb78368fae (inactive)

El feature ya esta listo y hay que ponerlo en default:

[email protected] ~/dev/py-cfdi
$ hg heads
changeset:   16:48dd0b3b4a44
branch:      TimbradoDigital
tag:         tip
user:        zodman <[email protected]>
date:        Sun Aug 18 16:30:06 2013 -0500
summary:     Compelento con timbre Fiscal

changeset:   15:08cb78368fae
user:        zodman <[email protected]>
date:        Sat Aug 17 21:40:08 2013 -0500
summary:     fix find_packages
(fac)
[email protected] ~/dev/py-cfdi
$ hg branch
default
(fac)
[email protected] ~/dev/py-cfdi
$ hg merge TimbradoDigital
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
(fac)
[email protected] ~/dev/py-cfdi
$ hg st
M pycfdi/base.py
M pycfdi/nodes.py
M testing.py
(fac)
[email protected] ~/dev/py-cfdi
$ hg commit -m "Mergin"
(fac)
[email protected] ~/dev/py-cfdi
$ hg push
pushing to ssh://[email protected]/zodman/py-cfdi
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 0 changes to 0 files

Como en mercurial No existe borrar vas a tener que cerrar el branch con hg commit --close-branch

Sobre el branch que vas a borrar

$ hg branches
default                       17:d10c9fb12a13
TimbradoDigital               16:48dd0b3b4a44 (inactive)
(fac)
[email protected] ~/dev/py-cfdi
$ hg up TimbradoDigital
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
(fac)
[email protected] ~/dev/py-cfdi
$ hg commit --close-branch
(fac)
[email protected] ~/dev/py-cfdi
$ hg push
pushing to ssh://[email protected]/zodman/py-cfdi
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 0 changes to 0 files
(fac)
[email protected] ~/dev/py-cfdi
$ hg branches
default                       17:d10c9fb12a13
(fac)
[email protected] ~/dev/py-cfdi
$ hg branch
TimbradoDigital
(fac)
[email protected] ~/dev/py-cfdi
$ hg up default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved