Mercurial > hgsubversion
changeset 675:31cd9f41ec09
svnwrap: improve a docstring & a comment.
The docstring for SubversionRepo was technically inaccurate; not only
do we require Subversion 1.5, but the reference to a required
parameter is inaccurate, as the parameter has a default value. (To be
fair, relying on the default value is unlikely to work...)
Part of a comment in SubversionRepo.revisions() was redundant, and
could be removed.
No functionality change.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 11 Aug 2010 19:57:35 +0200 |
parents | a51e50d943b2 |
children | 2a9c009790ce |
files | hgsubversion/svnwrap/svn_swig_wrapper.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -157,8 +157,7 @@ def _create_auth_baton(pool): class SubversionRepo(object): """Wrapper for a Subversion repository. - This uses the SWIG Python bindings, and will only work on svn >= 1.4. - It takes a required param, the URL. + It uses the SWIG Python bindings, see above for requirements. """ def __init__(self, url='', username='', password='', head=None): parsed = common.parse_url(url, username, password) @@ -285,7 +284,7 @@ class SubversionRepo(object): r = common.Revision(revnum, author, message, date, paths, strip_path=self.subdir) revisions.append(r) - # use a queue; we only access revisions in a FIFO manner + # we only access revisions in a FIFO manner revisions = collections.deque() try: