Aubrey Li wrote:
> Hi list,
> 
> -- Does hg support branch operation? If so, how to create one?
> Whenever I type "hg branches", I got nothing, even after I use "hg
> branch mine" to try to create a new on.

I'm new to Hg, but I'll try:

"Branch" isn't an operation, really, it's the result of two conflicting changes.
There's no explicit "I want to go in a different direction here" command; you
simply make whatever changes you want to make, and then at commit time, you may
create more than one head if your changes are not a direct descendant of the tip
revision.

> -- Can hg revert the committed changeset? I mean I don't want to see
> it in the "hg log" after I revert it. "hg backout" reverts the
> context, not including the commit number and log.

hg rollback will get rid of the last commit, as I understand it.

> -- It's a bit difficult to understand "hg heads", if no branch, why
> one repo has two or more head? how to fix this kind of issue?

Two heads is the result of making a change that creates a branch; you "fix" by
merging.

_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to