Questions tagged [pysvn]

PySVN is a library extension, and client program for accessing SVN repositories in the Python programming language.

PySVN is a library extension to Python, as well as a client 'workbench' written in Python; both are for accessing and manipulating SVN repositories. It supports multiple versions of Python 2 and 3, as well as Subversion 1.7.3 and earlier.

103 questions
15
votes
2 answers

Why can't pip find pysvn?

I'm working on a project which was written in Python 2, and I'm upgrading it to Python 3. So far, I've just been finding minor syntax errors which are easily fixable. What I've done is created a new project in Python 3, ensured that it worked, and…
DJGrandpaJ
  • 571
  • 3
  • 7
  • 20
9
votes
4 answers

Pysvn installer fails to detect Python installation

I have Python 2.7.2 installed in the default location, C:\Python27. I've downloaded pysvn 2.7 from http://pysvn.tigris.org/project_downloads.html > Windows installation kits. Pysvn Windows installer aborts on pysvn requires Python 2.7 to be…
Juuso Ohtonen
  • 8,826
  • 9
  • 65
  • 98
9
votes
1 answer

Install pysvn in a virtualenv

I can install pysvn site-wide using the binary package. For example, in Ubuntu: $ sudo apt-get install python-svn Or, on Windows, I can install site-wide using the .exe installer. Outside of a virtualenv, I can do this $ python -c "import pysvn;…
Christian Long
  • 10,385
  • 6
  • 60
  • 58
5
votes
3 answers

Get HEAD revision number of SVN Repository with PYSVN

I'm using pysvn to monitor the changes in a Subversion directory. This is how i get informations from revisions: (...) svn_root = "http://svn/" client = pysvn.Client() from_revision = pysvn.Revision(pysvn.opt_revision_kind.number, 1500) to_revision…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
5
votes
2 answers

How to catch login failures with PySVN?

I'm new to Python and PySVN in general, and I'm trying to export my SVN repository using pysvn. Here's my code: #set up svn login data def svn_credentials (realm, username, may_save): return True, svn_login_name, svn_login_password,…
Geoff
  • 573
  • 1
  • 5
  • 7
5
votes
1 answer

pysvn with svn+ssh

I'm working with pysvn, and I'm trying to find a decent way to handle repositories that are only accessible via svn+ssh. Obviously SSH keys make this all incredibly easy, but I can't guarantee the end user will be using an SSH key. This also has to…
f4nt
  • 2,661
  • 5
  • 31
  • 35
5
votes
1 answer

Test if file under version control in pysvn (python subversion)

In pysvn, how do I test if a file is under version control?
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
4
votes
2 answers

pysvn client.log() returning empty dictionary

i have the following script that i am using to get the log messages from svn import pysvn class svncheck(): def __init__(self, svn_root="http://10.11.25.3/svn/Moodle/modules", svn_user=None, svn_password=None): self.user = svn_user …
nashr rafeeg
  • 779
  • 3
  • 12
  • 31
4
votes
1 answer

Get working copy root path using pysvn

When I run the SVN command 'svn info path', the SVN command line client (v1.8.4) spits out (among other things) a 'Working Copy Root Path'. How would I get this same information using pysvn? Seems like it should be available using the either…
tabishm
  • 43
  • 5
4
votes
1 answer

Pysvn:propset() shows Path does not exist in revision 0 Error

python script, root = "..." commit_info = svncl.propset( "myprop", "Test", root, …
user1553605
  • 1,333
  • 5
  • 24
  • 42
4
votes
2 answers

pysvn-1.7.6 on rhel6,error: Not a URL, existing file, or requirement spec:

I have Python 2.7.3 installed on RHEL 6, and when I tried to install pysvn-1.7.6, I got an error. What should I do? /search/python/pysvn-1.7.6/Import/pycxx-6.2.4/CXX/Python2/Objects.hxx:2912: warning: deprecated conversion from string constant to…
xielingyun
  • 780
  • 9
  • 17
4
votes
2 answers

How do I solve this error while attempting an SVN export using pysvn?

I am attempting to use the Python SVN bindings (pysvn) to do an export on a repository and am encountering the following error: python: subversion/libsvn_subr/dirent_uri.c:955: svn_dirent_join: Assertion `svn_dirent_is_canonical(base, pool)'…
jamieb
  • 9,847
  • 14
  • 48
  • 63
3
votes
3 answers

How to install pysvn on Redhat Enterprise Linux 6.0?

I tried to install pysvn on my server today, but met some problems as below: [root@coffish pysvn-1.7.6]# python setup.py install running install running bdist_egg running egg_info writing pysvn.egg-info/PKG-INFO writing top-level names to…
shengfengli
  • 126
  • 1
  • 8
3
votes
1 answer

Do a 'svn update --set-depth=infinity' with pysvn

I have a python script which does a partial checkout. At some point I want to do an reintegration. Before that I have to checkout the complete directory tree. My working copy contains the root which was checked out with depth emtpy and some folders…
merula
  • 384
  • 2
  • 8
3
votes
1 answer

pysvn prompts for password with svn+ssh

I'm writing Python app which uses pysvn to get svn log history. It works ok for http:// like urls, but for svn+ssh:// I get prompted for a password on the command line! I use callback_get_login to authenticate. Is there any way to avoid the prompt…
umpirsky
  • 9,902
  • 13
  • 71
  • 96
1
2 3 4 5 6 7