Andres Vargas - zodman

En mercurial no existe borrar branch

Uso mas git (por el trabajo) que mercurial.

Hize un branch en un proyecto para hacer un feature.

andres@andres-PC ~/dev/py-cfdi
$ hg push --new-branch
pushing to ssh://hg@bitbucket.org/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

andres@andres-PC ~/dev/py-cfdi
$ hg branches
TimbradoDigital               16:48dd0b3b4a44
default                       15:08cb78368fae (inactive)

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

andres@andres-PC ~/dev/py-cfdi
$ hg heads
changeset:   16:48dd0b3b4a44
branch:      TimbradoDigital
tag:         tip
user:        zodman <zodman@gmail.com>
date:        Sun Aug 18 16:30:06 2013 -0500
summary:     Compelento con timbre Fiscal

changeset:   15:08cb78368fae
user:        zodman <zodman@gmail.com>
date:        Sat Aug 17 21:40:08 2013 -0500
summary:     fix find_packages
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg branch
default
(fac)
andres@andres-PC ~/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)
andres@andres-PC ~/dev/py-cfdi
$ hg st
M pycfdi/base.py
M pycfdi/nodes.py
M testing.py
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg commit -m "Mergin"
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg push
pushing to ssh://hg@bitbucket.org/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)
andres@andres-PC ~/dev/py-cfdi
$ hg up TimbradoDigital
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg commit --close-branch
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg push
pushing to ssh://hg@bitbucket.org/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)
andres@andres-PC ~/dev/py-cfdi
$ hg branches
default                       17:d10c9fb12a13
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg branch
TimbradoDigital
(fac)
andres@andres-PC ~/dev/py-cfdi
$ hg up default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

#Mercurial #Linux #Planetalinux