Mercurial > hgsubversion
comparison svnwrap/svn_swig_wrapper.py @ 196:77812f98e250
Add a naive hg svn version command that works as long as hgsubversion is run from a checkout.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 10 Feb 2009 14:52:26 -0600 |
parents | e37f9d3fd5e7 |
children | b5ef9a404f5d 2165461d2dd8 fa26c7ef0180 |
comparison
equal
deleted
inserted
replaced
195:906d3f302b45 | 196:77812f98e250 |
---|---|
8 | 8 |
9 from svn import client | 9 from svn import client |
10 from svn import core | 10 from svn import core |
11 from svn import delta | 11 from svn import delta |
12 from svn import ra | 12 from svn import ra |
13 | |
14 def version(): | |
15 return '%d.%d.%d' % (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO) | |
13 | 16 |
14 if (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO) < (1, 5, 0): #pragma: no cover | 17 if (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO) < (1, 5, 0): #pragma: no cover |
15 raise ImportError, 'You must have Subversion 1.5.0 or newer and matching SWIG bindings.' | 18 raise ImportError, 'You must have Subversion 1.5.0 or newer and matching SWIG bindings.' |
16 | 19 |
17 class SubversionRepoCanNotReplay(Exception): | 20 class SubversionRepoCanNotReplay(Exception): |