version control - Mercurial: Create a branch without having to make a change first -


i heard way create branch in mercurial repository make changes in working copy, commit them new branch.

in subversion, can create branch without having make changes (by copying trunk path under tags) - possible in mercurial well?

i've seen tortoisehg, it's possible can done via command-line tool , don't know it.

my workflow is:

  • create feature branch.
  • do work in feature branch.
  • create release candidate branch.
  • merge feature(s) release candidate branch.
  • deploy, test, fix deploy, test, fix release candidate branch.
  • merge release candidate branch trunk.

many in advance.

it depends on mean branch.

a named branch can created giving name , committing, it'll end new changeset in history, don't need explicitly change of files in working folder allowed commit.

hg branch newname hg commit -m "created branch newname" 

you can using tortoisehg dialog.

however, if want create unnamed branch, ie. head, yes, need change something. , really, why want create empty changeset no changes? signal "this i'll place branch when have changes"?


Comments

Popular posts from this blog

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -