Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aaa28df

Browse files
committed
update to reflect move to Subversion
1 parent 50bf51a commit aaa28df

3 files changed

Lines changed: 8 additions & 272 deletions

File tree

Doc/tools/cvsinfo.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

Doc/tools/findacks

Lines changed: 0 additions & 161 deletions
This file was deleted.

Doc/tools/mksourcepkg

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import shutil
2424
import sys
2525
import tempfile
2626

27-
import cvsinfo
28-
2927
try:
3028
__file__
3129
except NameError:
@@ -79,42 +77,22 @@ def main():
7977
else:
8078
formats = ["gzip"]
8179
release = args[0]
82-
cvstag = None
80+
svntag = None
8381
if len(args) > 1:
84-
cvstag = args[1]
82+
svntag = args[1]
8583
tempdir = tempfile.mktemp()
8684
os.mkdir(tempdir)
8785
pkgdir = os.path.join(tempdir, "Python-Docs-" + release)
88-
os.mkdir(pkgdir)
8986
pwd = os.getcwd()
9087
mydir = os.path.abspath(os.path.dirname(sys.argv[0]))
91-
info = cvsinfo.RepositoryInfo(mydir)
92-
cvsroot = info.get_cvsroot()
93-
m = rx.match(cvsroot)
94-
if m and anonymous:
95-
# If this is an authenticated SourceForge repository, convert to
96-
# anonymous usage for the export/checkout, since that avoids the
97-
# SSH overhead.
98-
group = m.group(1)
99-
cvsroot = ":pserver:anonymous@cvs.%s.sourceforge.net:/cvsroot/%s" \
100-
% (group, group)
101-
# For some reason, SourceForge/CVS doesn't seem to care that we
102-
# might not have done a "cvs login" to the anonymous server.
103-
# That avoids a lot of painful gunk here.
10488
os.chdir(tempdir)
10589
if not quiet:
106-
print "--- current directory is:", pkgdir
107-
if cvstag:
108-
run("cvs -d%s export -r %s -d Python-Docs-%s python/dist/src/Doc"
109-
% (cvsroot, cvstag, release))
110-
else:
111-
run("cvs -Q -d%s checkout -d Python-Docs-%s python/dist/src/Doc"
112-
% (cvsroot, release))
113-
# remove CVS directories
114-
for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'):
115-
map(shutil.rmtree, glob.glob(p))
116-
for f in ('.cvsignore', '*/.cvsignore'):
117-
map(os.unlink, glob.glob(f))
90+
print "--- current directory is:", tempdir
91+
if not svntag:
92+
svntag = "trunk"
93+
svnbase = "http://svn.python.org/projects/python"
94+
run("svn export %s/%s/Doc Python-Docs-%s"
95+
% (svnbase, svntag, release))
11896

11997
# Copy in the version informtation, if we're not just going to
12098
# rip it back out:

0 commit comments

Comments
 (0)