Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: git-describe Date: Fri, 27 May 2011 23:21:09 -0400 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 28 May 2011 03:21:11 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bAymlyY9SkaJNa8Tz2rerw"; logging-data="20361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180ZqTJX73yX36e/riz4NiPsHS4txew/9c=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16pre) Gecko/20110305 Lightning/1.0b3pre Thunderbird/3.1.10pre In-Reply-To: Cancel-Lock: sha1:6xc9B7tr3ya3abli3ZyrJlN+QUk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4674 On 05/27/2011 10:34 PM, Lawrence D'Oliveiro wrote: > In message, Tom > Anderson wrote: >> $ hg update 0 > > So this command has started a new branch? > > In Git, every branch has a name. No, hg update goes to that revision. I think the git equivalent is git checkout (bizarrely named, if you ask me). hg branches have names, although branch names are a property of the changeset and not the repository (which makes git hard for me to use, having used hg for 6-odd years). -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth