Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68481

Re: Question about Source Control

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'repository': 0.05; '*not*': 0.07; 'subject:Question': 0.07; 'git': 0.09; 'pay.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Source': 0.09; 'python': 0.11; 'assume': 0.14; 'wrote': 0.14; 'clone': 0.16; 'machine?': 0.16; 'programmer,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:n 70': 0.16; 'there...': 0.16; 'fix': 0.17; 'thanks,': 0.17; 'wrote:': 0.18; 'version.': 0.19; 'seems': 0.21; 'machine': 0.22; 'separate': 0.22; 'install': 0.23; 'error': 0.23; 'simpler': 0.24; 'typical': 0.24; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'am,': 0.29; 'code': 0.31; 'easier': 0.31; 'are.': 0.31; 'run': 0.32; 'linux': 0.33; 'running': 0.33; 'checking': 0.33; 'trouble': 0.34; 'sense': 0.34; 'maybe': 0.34; "i'd": 0.34; 'test': 0.35; 'but': 0.35; 'version': 0.36; 'right?': 0.36; 'thanks': 0.36; "i'll": 0.36; 'should': 0.36; 'two': 0.37; 'being': 0.38; 'system,': 0.38; 'machines': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'full': 0.61; 'first': 0.61; 'save': 0.62; 'central': 0.64; 'more': 0.64; 'kept': 0.65; 'latest': 0.67; 'mar': 0.68; 'frank': 0.68; 'frequently': 0.68; 'sound': 0.68; 'price': 0.69; 'yourself': 0.78; 'subject:Control': 0.84; 'system),': 0.84; 'approach.': 0.91; 'lazy': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From "Frank Millman" <frank@chagford.com>
Subject Re: Question about Source Control
Date Tue, 18 Mar 2014 07:39:37 +0200
References <lg6s09$irl$1@ger.gmane.org> <CAPTjJmqPca5cnNWu8T5BZhpH665X0=mrf7bJaLqVrQVMjZWu1g@mail.gmail.com>
X-Gmane-NNTP-Posting-Host 197.87.50.23
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.3790.4657
X-RFC2646 Format=Flowed; Original
X-MimeOLE Produced By Microsoft MimeOLE V6.00.3790.4913
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.8236.1395121191.18130.python-list@python.org> (permalink)
Lines 54
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1395121191 news.xs4all.nl 2895 [2001:888:2000:d::a6]:40854
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:68481

Show key headers only | View raw


"Chris Angelico" <rosuav@gmail.com> wrote in message 
news:CAPTjJmqPca5cnNWu8T5BZhpH665X0=mrf7bJaLqVrQVMjZWu1g@mail.gmail.com...
> On Tue, Mar 18, 2014 at 12:06 AM, Frank Millman <frank@chagford.com> 
> wrote:
[...]
>>
>> So where should I install the SCM, and how should I set it up so that I 
>> can
>> access the latest version from any machine?
>
> First off: You can save yourself a huge amount of trouble now! Modern
> source control systems are distributed (DVCS - Distributed Version
> Control System), which means that you have a much simpler setup: every
> machine that uses it has a full clone of the repository.
>
> By the sound of it, you don't have any history at the moment, so I'll
> assume you just start using either git or hg from where you are. The
> first thing to do is to get a local copy of the current source tree.
> I'd start with a Linux system, because everything seems to be easier
> there...
>
[...]

Thanks, Chris. I appreciate the detailed explanation.

Two quick questions -

1. At present the source code is kept on one machine (A), but only accessed 
from the two other machines (B and C).

Does it make sense to create the central repository on A, but *not* install 
the SCM on A? Install separate copies of the SCM on B and C, and allow them 
both to set up their own clones. I only develop on B, so only B would 
'push', but both B and C would 'pull' to get the latest version.

2. Being a typical lazy programmer, I frequently go through the following 
cycle. I work on a section of code by editing it on B. Then I test it by 
running it on C. Instead of meticulously checking my code I let python find 
the errors, so I run it on C, it crashes with a traceback, I fix the error 
on B and rerun it on C until it is working to my satisfaction.

It seems that I will have to change my approach. Edit on B, 'push' on B, 
'pull' on C, run from C. It sounds more cumbersome, but maybe that is the 
price I have to pay.

Have I got those two right?

Thanks

Frank


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Question about Source Control "Frank Millman" <frank@chagford.com> - 2014-03-18 07:39 +0200

csiph-web