aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorPhilip Thiem <ptthiem@gmail.com>2013-07-04 11:20:20 -0500
committerPhilip Thiem <ptthiem@gmail.com>2013-07-04 11:20:20 -0500
commitb46fff3b028fb1c0c423eddd6d53ca9f70a10bb0 (patch)
tree857e50d1d828d7aea6527e814439b1e587ed4171 /setuptools/command/egg_info.py
parent6937c39c7f21cd6cda8271092b7672712e012674 (diff)
downloadexternal_python_setuptools-b46fff3b028fb1c0c423eddd6d53ca9f70a10bb0.tar.gz
external_python_setuptools-b46fff3b028fb1c0c423eddd6d53ca9f70a10bb0.tar.bz2
external_python_setuptools-b46fff3b028fb1c0c423eddd6d53ca9f70a10bb0.zip
get_svn_method now direectly called svn_utils.parse_revision
--HG-- extra : rebase_source : 4af53ce7fcf4d69c0d65800e57fabec7d081ce35
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py26
1 files changed, 1 insertions, 25 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 9d30b125..345ec8ae 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -217,31 +217,7 @@ class egg_info(Command):
@staticmethod
def get_svn_revision():
- revision = 0
-
- for base,dirs,files in os.walk(os.curdir):
- if '.svn' not in dirs:
- dirs[:] = []
- continue # no sense walking uncontrolled subdirs
- dirs.remove('.svn')
-
- entries = svn_utils.SVNEntries.load_dir(base)
- if not entries.is_valid:
- log.warn(" get_svn_revision: Cannot determine how to read enteries.")
- dirs[:] = []
- continue
-
- localrev = entries.parse_revision()
- dirurl = entries.get_url()
-
- if base==os.curdir:
- base_url = dirurl+'/' # save the root url
- elif not dirurl.startswith(base_url):
- dirs[:] = []
- continue # not part of the same svn tree, skip it
- revision = max(revision, localrev)
-
- return str(revision or get_pkg_info_revision())
+ return str(svn_utils.parse_revision(os.curdir))