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


Groups > comp.lang.python > #67452

Re: source code control and documentation

References <CAOF-KfjnM=BXRRnendFsY3iigPyW8PcCTEijQvfcU_9fGwWOXA@mail.gmail.com>
Date 2014-03-03 03:02 +1100
Subject Re: source code control and documentation
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.7584.1393776156.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Mar 3, 2014 at 2:56 AM, Rita <rmorgan466@gmail.com> wrote:
> I am trying to achieve this, every time I commit to svn I automatically  run
> hooks to test my libraries, ATM I am doing this manually
>
> cd libs
> PYTHONPATH=. python test_lib.py
>
> and if everything passes I do a svn commit -m 'committing code'
>
> I don't have access to my svn server so I can't create my own hooks (or can
> I?)

This is really a subversion question, not a Python one. But this much
I'll say: svn is vastly inferior to modern version control systems
like git and Mercurial (the latter being written in Python and used
for CPython and many other Python-related projects). You can easily
import your svn history into either git or Mercurial (at least, I'm
pretty sure Mercurial offers good import facilities - if not, there
are ways around the problem), so you won't lose anything by switching.
And hook support is excellent.

Personally, I'm very friendly with git - we work together really well.
Mercurial and I are like business acquaintances that don't see each
other quite as often, and interactions are a bit more formal and
stilted. But I know that either one will serve you well, and far more
easily than svn does.

ChrisA

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


Thread

Re: source code control and documentation Chris Angelico <rosuav@gmail.com> - 2014-03-03 03:02 +1100

csiph-web