Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'subject:: [': 0.04; 'say,': 0.05; 'subject:Question': 0.07; 'branching': 0.09; 'experimental': 0.09; 'git': 0.09; 'mercurial': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'clone': 0.16; 'kern': 0.16; 'personally,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'redundant.': 0.16; 'subject:branches': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'directory.': 0.24; 'interpret': 0.24; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'robert': 0.30; "i'm": 0.30; '>>>>': 0.31; 'branches': 0.31; "d'aprano": 0.31; 'encouraged': 0.31; 'sep': 0.31; 'steven': 0.31; 'advice': 0.35; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'operating': 0.37; 'branch': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'then,': 0.60; "you'll": 0.62; 'kind': 0.63; 'our': 0.64; 'pick': 0.64; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'due': 0.66; 'believe': 0.68; 'natural': 0.68; 'to,': 0.72; 'listening': 0.74; 'eco': 0.84; 'etc,': 0.84; 'terrible': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robert Kern Subject: Re: [OT] Question about Git branches Date: Tue, 16 Sep 2014 17:08:10 +0100 References: <878ulk7z7y.fsf@elektro.pacujo.net> <541829b4$0$29995$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 213.1.240.226 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <541829b4$0$29995$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 36 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410884611 news.xs4all.nl 2946 [2001:888:2000:d::a6]:43828 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77938 On 2014-09-16 13:14, Steven D'Aprano wrote: > Chris Angelico wrote: > >> On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >>> "Frank Millman" : >>> >>>> You are encouraged to make liberal use of 'branches', >>> >>> Personally, I only use forks, IOW, "git clone". I encourage that >>> practice. Then, there is little need for "git checkout". Instead, I just >>> cd to a different directory. >>> >>> Branches and clones are highly analogous processwise; I would go so far >>> as to say that they are redundant. >> >> But rather than listening to, shall we say, *strange* advice like >> this, Frank, you'll do well to pick up a reliable git tutorial, which >> should explain branches, commits, the working tree, etc, etc, etc. > > Isn't this "strange advice" standard operating procedure in Mercurial? I'm > not an expert on either hg or git, but if I've understood hg correctly, the > way to begin an experimental branch is to use hg clone. Yes, but this is due to different design decisions of git and Mercurial. git prioritized the multiple branches in a single clone use case; Mercurial prioritized re-cloning. It's natural to do this kind of branching in git, and more natural to re-clone in Mercurial. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco