Mercurial > hgsubversion
view setup.py @ 342:76c833526fbc
Use fallbacks in the wrappers for Subversion support, instead of prefixes.
The change only applies to the ambiguous URL schemes: file, http and
https. The others - svn+ssh and svn - behave the same as previously.
For http and https, the wrapping is implemented in 'svnrepo.py': Only
when the attempt to create a httprepo instance fails, will the URL
be considered for Subversion URL.
For file, the ambiguity is treated much like the Mercurial core
distinguishes bundle and directories. In this case, a directory that
looks like a Subversion repository will *not* be considered for a
Mercurial clone.
Tthe command lines are more similar to before this refactor. The only
option added to push & pull is --stupid; others are only added to
clone. Any of these options specified to clone will be added to the
generated '.hgrc'.
Also, the -r/--rev option now works for clone & push.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 20 May 2009 18:38:01 +0200 |
parents | 46e69be8e2c8 |
children | 537de0300510 |
line wrap: on
line source
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'): raise SystemExit("Mercurial requires python 2.4 or later.") try: from distutils.command.build_py import build_py_2to3 as build_py except ImportError: from distutils.command.build_py import build_py from distutils.core import setup setup( name = 'hgsubversion', version = '0.0.1', url = 'http://bitbucket.org/durin42/hgsubversion', license = 'GNU GPL', author = 'Augie Fackler, others', author_email = 'hgsubversion@googlegroups.com', description = ('hgsubversion is a Mercurial extension for working with ' 'Subversion repositories.'), long_description = open(os.path.join(os.path.dirname(__file__), 'README')).read(), keywords = 'mercurial', packages = ['hgsubversion', 'hgsubversion.svnwrap'], platforms = 'any', classifiers = [ 'License :: OSI Approved :: GNU General Public License (GPL)', 'Intended Audience :: Developers', 'Topic :: Software Development :: Version Control', 'Development Status :: 2 - Pre-Alpha', 'Programming Language :: Python', 'Operating System :: OS Independent', ], cmdclass = {'build_py': build_py}, )