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


Groups > comp.lang.python > #107822 > unrolled thread

Best way to do subversion stuff

Started byGrant Edwards <grant.b.edwards@gmail.com>
First post2016-04-28 18:36 +0000
Last post2016-04-28 18:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Best way to do subversion stuff Grant Edwards <grant.b.edwards@gmail.com> - 2016-04-28 18:36 +0000

#107822 — Best way to do subversion stuff

FromGrant Edwards <grant.b.edwards@gmail.com>
Date2016-04-28 18:36 +0000
SubjectBest way to do subversion stuff
Message-ID<mailman.208.1461868608.32212.python-list@python.org>
I'd like to write some small command-line utilities to do some tasks
in subversion:

 * Do a commit that includes all modified externals.

 * Do a status that includes status of all externals.

 * Do a log that combines logs of . and all externals.

There appear to be three options:

 1) pysvn  <http://pysvn.tigris.org/>

   This seems to be the canonical Python API, but is a little out of
   date (I'd have to downgrade subversion from 1.9.3 to 1.9.1).

 2) PySvn  <https://github.com/dsoprea/PySvn>

   Doesn't do commit or status operations and doesn't handle
   externals at all. AFIACT it's running the the command-line
   /usr/bin/svn with various options.

   Nice job picking a name that's not going to get mixed up with
   pysvn. ;)

 3) os.subproces + /usr/bin/svn 

   This is more or less re-inventing 2) The xml output option makes
   this approach fairly easy. It might be faster to write something
   special-purpose from scratch than to figure out the internals of
   PySvn and modify it to add the operations/options I want.

Any recommendations?

-- 
Grant Edwards               grant.b.edwards        Yow! Finally, Zippy
                                  at               drives his 1958 RAMBLER
                              gmail.com            METROPOLITAN into the
                                                   faculty dining room.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web