More svn -> git changes.

Some mentions of svn/subversion are replaced with git, and some patterns
for paths to ignore include ".git*".  (Note ".mailmap" not added, might
need to.)
This commit is contained in:
Eli Barzilay 2010-05-17 04:38:43 -04:00
parent 8450f202e9
commit 9c352f5704
20 changed files with 87 additions and 104 deletions

View File

@ -2410,14 +2410,11 @@
(define memory-canvases '()) (define memory-canvases '())
(define show-memory-text? (define show-memory-text?
(or (with-handlers ([exn:fail:filesystem? (or (with-handlers ([exn:fail:filesystem? (λ (x) #f)])
(λ (x) #f)])
(directory-exists? (collection-path "repo-time-stamp"))) (directory-exists? (collection-path "repo-time-stamp")))
(with-handlers ([exn:fail:filesystem? (with-handlers ([exn:fail:filesystem? (λ (x) #f)])
(λ (x) #f)])
(let ([fw (collection-path "framework")]) (let ([fw (collection-path "framework")])
(or (directory-exists? (build-path fw ".svn")) (directory-exists? (build-path fw 'up 'up ".git"))))))
(directory-exists? (build-path fw "CVS")))))))
(define bday-click-canvas% (define bday-click-canvas%
(class canvas% (class canvas%

View File

@ -14,22 +14,18 @@
(define-syntax (mk-units stx) (define-syntax (mk-units stx)
(syntax-case stx () (syntax-case stx ()
[(_) [(_)
(with-syntax ([(unit-names ...) (with-syntax
([(unit-names ...)
(let ([probdir (collection-path "games" "paint-by-numbers") "problems"])
(let loop ([files (let loop ([files
(call-with-input-file (call-with-input-file (build-path probdir "directory")
(build-path (collection-path "games" "paint-by-numbers")
"problems" "directory")
read)]) read)])
(cond (cond
[(null? files) null] [(null? files) null]
[(or (member (car files) '("CVS" ".svn")) [(not (file-exists? (build-path probdir (car files))))
(not (file-exists? (build-path (collection-path "games" "paint-by-numbers")
"problems" (car files)))))
(loop (cdr files))] (loop (cdr files))]
[else [else (cons (car files) (loop (cdr files)))])))])
(cons (car files) #'(list (include (build-path "problems" unit-names)) ...))]))
(loop (cdr files)))]))])
(syntax (list (include (build-path "problems" unit-names)) ...)))]))
(define units (mk-units)) (define units (mk-units))

View File

@ -37,10 +37,10 @@
#| #|
cd ~.../plt/collects/icons cd ~.../plt/collects/icons
cp where/ever/trumpet.xbm . cp where/ever/trumpet.xbm .
svn update git pull
svn trumpet.xbm ...make trumpet.xbm...
svn setprop svn:mime-type image/x-xbitmap git commit -m "added trumpet image"
svn commit -m "added trumpet image" git push
|# |#
#| ------------------------------------------------------------------------ #| ------------------------------------------------------------------------

View File

@ -10,11 +10,11 @@ Instructions:
up.) up.)
I do this: I do this:
cd cd ...git-repo...
svn co http://svn.plt-scheme.org/plt/tags/<PREV-VER-OR-PATCH> patched git checkout -b patch <PREV-VER-OR-PATCH> patched
cd patched git cherry-pick fix-sha1s...
svn merge -r<FIXREV-1>:<FIXREV> http://svn.plt-scheme.org/plt/trunk
... more merges as needed ... ... more merges as needed ...
And at the end don't forget to drop a new tag for the patched result.
* Make sure that "collects/version/patchlevel.ss" contains the new patch * Make sure that "collects/version/patchlevel.ss" contains the new patch
number, and add comments about this patch, with a list of files that are number, and add comments about this patch, with a list of files that are

View File

@ -149,7 +149,7 @@ compiled-filter := (- (collects: "**/compiled/")
src-filter := (src: "") src-filter := (src: "")
docs-filter := (- (doc: "") ; all docs, docs-filter := (- (doc: "") ; all docs,
(notes: "") ; excluding basic stuff (notes: "") ; excluding basic stuff
std-docs) ; and things in svn std-docs) ; and things in git
docsrc-filter := (+ (collects: "setup/scribble.rkt") ; only with doc sources docsrc-filter := (+ (collects: "setup/scribble.rkt") ; only with doc sources
(collects: "**/scribblings/") (collects: "**/scribblings/")
(srcfile: "*.{scrbl|scribble}") (srcfile: "*.{scrbl|scribble}")
@ -162,7 +162,7 @@ gui-filter := (- (+ (collects: "**/gui/") (srcfile: "gui.rkt"))
(srcfile: "racket/gui/dynamic.rkt")) (srcfile: "racket/gui/dynamic.rkt"))
tools-filter := (+ (collects: "**/tools/") (srcfile: "tools.rkt")) tools-filter := (+ (collects: "**/tools/") (srcfile: "tools.rkt"))
;; these are in the doc directory, but are comitted in svn and should be ;; these are in the doc directory, but are comitted in git and should be
;; considered like sources ;; considered like sources
std-docs := (doc: "doc-license.txt" "*-std/") std-docs := (doc: "doc-license.txt" "*-std/")
@ -170,7 +170,8 @@ std-docs := (doc: "doc-license.txt" "*-std/")
;; Junk ;; Junk
;; This is removed from the original tree only (*not* from the binary trees) ;; This is removed from the original tree only (*not* from the binary trees)
junk := (+ "CVS/" "[.#]*" "*~" ;; (the first line shouldn't be necessary, but be safe)
junk := (+ ".git*" "/.mailmap" ".svn" "CVS/" "[.#]*" "*~"
;; binary stuff should come from the platform directories ;; binary stuff should come from the platform directories
"/plt/bin/" "/plt/lib/" "/plt/src/*build*/") "/plt/bin/" "/plt/lib/" "/plt/src/*build*/")

View File

@ -471,7 +471,7 @@
is passed @code{-j} with the number of cores. Each revision also has a fresh home directory and PLaneT cache.} is passed @code{-j} with the number of cores. Each revision also has a fresh home directory and PLaneT cache.}
@h1{How long does it take for a build to start after a check-in?} @h1{How long does it take for a build to start after a check-in?}
@p{Only one build runs at a time and when none is running the SVN repository is polled every @,(number->string (current-monitoring-interval-seconds)) seconds.} @p{Only one build runs at a time and when none is running the git repository is polled every @,(number->string (current-monitoring-interval-seconds)) seconds.}
@h1{How is the revision "tested"?} @h1{How is the revision "tested"?}
@p{Each file's @code{@,PROP:command-line} property is consulted. If it is the empty string, the file is ignored. If it is a string, then a single @code{~s} is replaced with the file's path, @code{mzscheme} and @code{mzc} with their path (for the current revision), and @code{mred} and @code{mred-text} with @code{mred-text}'s path (for the current revision); then the resulting command-line is executed. @p{Each file's @code{@,PROP:command-line} property is consulted. If it is the empty string, the file is ignored. If it is a string, then a single @code{~s} is replaced with the file's path, @code{mzscheme} and @code{mzc} with their path (for the current revision), and @code{mred} and @code{mred-text} with @code{mred-text}'s path (for the current revision); then the resulting command-line is executed.
@ -500,7 +500,7 @@
@p{At the most basic level, if the bytes are different. However, there are two subtleties. First, DrDr knows to ignore the result of @code{time}. Second, the standard output and standard error streams are compared independently. The difference display pages present changed lines with a @span[([class "difference"])]{unique background}.} @p{At the most basic level, if the bytes are different. However, there are two subtleties. First, DrDr knows to ignore the result of @code{time}. Second, the standard output and standard error streams are compared independently. The difference display pages present changed lines with a @span[([class "difference"])]{unique background}.}
@h1{How is this site organized?} @h1{How is this site organized?}
@p{Each file's test results are displayed on a separate page, with a link to the previous revision on changes. All the files in a directory are collated and indexed recursively. On these pages each column is sortable and each row is clickable. The root of a revision also includes the SVN commit message with links to the test results of the modified files. The top DrDr page displays the summary information for all the tested revisions.} @p{Each file's test results are displayed on a separate page, with a link to the previous revision on changes. All the files in a directory are collated and indexed recursively. On these pages each column is sortable and each row is clickable. The root of a revision also includes the git commit message with links to the test results of the modified files. The top DrDr page displays the summary information for all the tested revisions.}
@h1{What is the difference between @code{Duration (Abs)} and @code{Duration (Sum)}?} @h1{What is the difference between @code{Duration (Abs)} and @code{Duration (Sum)}?}
@p{@code{Duration (Abs)} is the difference between the earliest start time and the latest end time in the collection.} @p{@code{Duration (Abs)} is the difference between the earliest start time and the latest end time in the collection.}

View File

@ -13,10 +13,10 @@
(define (repository-tree) (define (repository-tree)
(define (id x) x) (define (id x) x)
(filter-tree-by-pattern (filter-tree-by-pattern
(directory->tree (CACHE-DIR) (directory->tree
(CACHE-DIR)
(lambda (x) (lambda (x)
(not (regexp-match #rx"/(CVS|[.]svn)|[.]git$" (not (regexp-match? #rx"/(?:[.]git.*|[.]svn|CVS)$" (path->string x))))
(path->string x))))
4) 4)
(list id id id string->number string->number))) (list id id id string->number string->number)))

View File

@ -777,7 +777,7 @@ Make sure that all source files, documentation, etc. that you want to
be a part of the package are in a single directory and its be a part of the package are in a single directory and its
subdirectories. Furthermore make sure that nothing else, @italic{e.g.} subdirectories. Furthermore make sure that nothing else, @italic{e.g.}
unneeded backup files, is in that directory (with the exception that unneeded backup files, is in that directory (with the exception that
the subdirectories and files CVS or Subversion creates are the meta-subdirectories and files Git/Subversion/CVS uses are
automatically skipped by the packaging tool). automatically skipped by the packaging tool).
@subsubsection{Create Documentation [Optional]} @subsubsection{Create Documentation [Optional]}

View File

@ -56,7 +56,6 @@
(unless (directory-exists? native-dir) (make-directory* native-dir)) (unless (directory-exists? native-dir) (make-directory* native-dir))
(parameterize ([current-directory src-dir]) (parameterize ([current-directory src-dir])
(for ([path (directory-list)]) (for ([path (directory-list)])
(when (and (directory-exists? path) (when (directory-exists? path)
(not (member (path->string path) '("CVS" ".svn"))))
(parameterize ([current-directory path]) (parameterize ([current-directory path])
(build-library path)))))) (build-library path))))))

View File

@ -1,19 +1,9 @@
#lang racket/base
(module time-stamp mzscheme (require drracket/tool racket/unit framework "stamp.ss")
(require drscheme/tool
mzlib/unit
framework)
(require "stamp.ss")
(provide tool@) (provide tool@)
(require "stamp.ss")
(define tool@ (define tool@
(unit (unit (import drscheme:tool^) (export drscheme:tool-exports^)
(import drscheme:tool^)
(export drscheme:tool-exports^)
(define (phase1) (void)) (define (phase1) (void))
(define (phase2) (void)) (define (phase2) (void))
(version:add-spec '-svn stamp)))) (version:add-spec '-- stamp)))

View File

@ -300,11 +300,12 @@ making @filepath{.plt} archives.}
Old, keywordless variant of @racket[pack-plt] for backward compatibility.} Old, keywordless variant of @racket[pack-plt] for backward compatibility.}
@defproc[(std-filter (p path-string?)) boolean?]{ @defproc[(std-filter (p path-string?)) boolean?]{
Returns @racket[#t] unless @racket[p], after stripping its Returns @racket[#t] unless @racket[p], after stripping its directory
directory path and converting to a byte string, matches one of the path and converting to a byte string, matches one of the following
following regular expressions: @litchar{^CVS$}, @litchar{^[.]svn$}, regular expressions: @litchar{^[.]git}, @litchar{^[.]svn$},
@litchar{^[.]cvsignore}, @litchar{^compiled$}, @litchar{^doc}, @litchar{^CVS$}, @litchar{^[.]cvsignore}, @litchar{^compiled$},
@litchar{~$}, @litchar{^#.*#$}, @litchar{^[.]#}, or @litchar{[.]plt$}.} @litchar{^doc}, @litchar{~$}, @litchar{^#.*#$}, @litchar{^[.]#}, or
@litchar{[.]plt$}.}
@defproc[(mztar (path path-string?) @defproc[(mztar (path path-string?)
(output output-port?) (output output-port?)

View File

@ -178,10 +178,10 @@
(define (std-filter path) (define (std-filter path)
(let-values ([(base name dir?) (split-path path)]) (let-values ([(base name dir?) (split-path path)])
(let ([name (path->bytes name)]) (let ([name (path->bytes name)])
(not (or (regexp-match #rx#"^(?:CVS|[.]svn|[.]git|[.]cvsignore|compiled|doc)$" (not (or (regexp-match? #rx#"^(?:[.](?:git.*|svn|cvsignore)|CVS|compiled|doc)$"
name) name)
(regexp-match #rx#"~$|^#.*#$|^[.]#" name) (regexp-match? #rx#"~$|^#.*#$|^[.]#" name)
(regexp-match #rx#"[.]plt$" name)))))) (regexp-match? #rx#"[.]plt$" name))))))
(define (pack-collections output name collections replace? extra-setup-collections (define (pack-collections output name collections replace? extra-setup-collections
[file-filter std-filter] [at-plt-home? #f]) [file-filter std-filter] [at-plt-home? #f])

View File

@ -11,8 +11,8 @@
;; installation in the given paths (used by the shell installers) ;; installation in the given paths (used by the shell installers)
;; (interactive, undo-on-error, create-uninstaller) ;; (interactive, undo-on-error, create-uninstaller)
;; - `copy': similar to `move', but copies instead of moving ;; - `copy': similar to `move', but copies instead of moving
;; - `make-install-copytree': copies some toplevel directories, skips .svn ;; - `make-install-copytree': copies some toplevel directories, skips ".*"
;; and compiled subdirs, and rewrites config.ss, but no uninstaller (used ;; and compiled subdirs, and rewrites "config.ss", but no uninstaller (used
;; by `make install') (requires an additional `origtree' argument) ;; by `make install') (requires an additional `origtree' argument)
;; - `make-install-destdir-fix': fixes paths in binaries, laucnhers, and ;; - `make-install-destdir-fix': fixes paths in binaries, laucnhers, and
;; config.ss (used by `make install' to fix a DESTDIR) (requires exactly ;; config.ss (used by `make install' to fix a DESTDIR) (requires exactly
@ -414,9 +414,8 @@
(define copytree (move/copy-tree #f)) (define copytree (move/copy-tree #f))
(define origtree? (equal? "yes" (get-arg))) (define origtree? (equal? "yes" (get-arg)))
(current-directory pltdir) (current-directory pltdir)
(set! skip-filter ; skip all dot-names, CVS and compiled subdirs (set! skip-filter ; skip all dot-names and compiled subdirs
(lambda (p) (lambda (p) (regexp-match? #rx"^(?:[.].*|compiled)$" (basename p))))
(regexp-match #rx"^(?:[.].*|CVS|compiled)$" (basename p))))
(with-handlers ([exn? (lambda (e) (undo-changes) (raise e))]) (with-handlers ([exn? (lambda (e) (undo-changes) (raise e))])
(set! yes-to-all? #t) ; non-interactive (set! yes-to-all? #t) ; non-interactive
(copytree "collects" 'collects) (copytree "collects" 'collects)

View File

@ -63,7 +63,7 @@ significant improvements from some compilers.</p>
see <a href="../log1/Gambit_20benchmarks.html">Gambit benchmark results</a>.</p> see <a href="../log1/Gambit_20benchmarks.html">Gambit benchmark results</a>.</p>
<p>For further details on the benchmarks here, see the benchmark source and <p>For further details on the benchmarks here, see the benchmark source and
infrastructure, which is available form the PLT SVN repository:</p> infrastructure, which is available form the PLT git repository:</p>
<p align=center> <p align=center>
<a href="http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/common/">http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/common/</a></P> <a href="http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/common/">http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/common/</a></P>

View File

@ -34,7 +34,7 @@ exec racket -qu "$0" ${1+"$@"}
(once-each (once-each
[("--graph") "generate graphs instead of tables (unless --multi)" [("--graph") "generate graphs instead of tables (unless --multi)"
(generate-graph #t)] (generate-graph #t)]
[("--links") "benchmark links to SVN" [("--links") "benchmark links to git"
(include-links #t)] (include-links #t)]
[("--multi") name "generate multiple pages for different views of data" [("--multi") name "generate multiple pages for different views of data"
(base-link-filename name)] (base-link-filename name)]

View File

@ -64,7 +64,7 @@
</P> </P>
<p>For further details on the benchmarks here, see the benchmark source and <p>For further details on the benchmarks here, see the benchmark source and
infrastructure, which is available form the PLT SVN repository:</p> infrastructure, which is available form the PLT git repository:</p>
<p align=center> <p align=center>
<a href="http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/rx">http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/rx</a></P> <a href="http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/rx">http://git.racket-lang.org/plt/tree/HEAD:/collects/tests/racket/benchmarks/rx</a></P>

View File

@ -77,7 +77,7 @@
[stable (getver 'stable)] [stable (getver 'stable)]
[recent (getver 'recent)]) [recent (getver 'recent)])
(cond (cond
;; we have the newest version (can be > if we have an svn build) ;; we have the newest version (can be > if we have a build from git)
[(version<=? recent current) 'ok] [(version<=? recent current) 'ok]
;; we're stable, but there's a newer version ;; we're stable, but there's a newer version
[(version<=? stable current) `(ok-but ,recent)] [(version<=? stable current) `(ok-but ,recent)]

View File

@ -777,7 +777,7 @@
(let ([p (build-path from name)]) (let ([p (build-path from name)])
(cond (cond
[(directory-exists? p) [(directory-exists? p)
(unless (member (path->string name) '("CVS" ".svn")) ; yuck (unless (regexp-match? #rx"^(?:[.](?:git.*|svn)|CVS)$" (path->string name)) ; yuck
(let ([dest (build-path to name)]) (let ([dest (build-path to name)])
(ensure-directory-shallow dest) (ensure-directory-shallow dest)
(for-each (lambda (x) (ensure* p dest x)) (for-each (lambda (x) (ensure* p dest x))

View File

@ -101,8 +101,8 @@ Quick instructions:
Detailed instructions: Detailed instructions:
0. If you have an old Racket installation in the target directory, 0. If you have an old Racket installation in the target directory,
remove it (unless you are using Subversion with an "in-place" remove it (unless you are using an "in-place" build from a
build as described below). repository as described below).
Also, make sure that you have libraries and header files for Xft Also, make sure that you have libraries and header files for Xft
and Cairo (v1.23 and up) if you would like support for font and Cairo (v1.23 and up) if you would like support for font
@ -122,15 +122,15 @@ Detailed instructions:
It's better to run the build in a directory other than the one It's better to run the build in a directory other than the one
containing `configure', especially if you're getting sources via containing `configure', especially if you're getting sources via
Subversion. A common way to start a Subversion-based build is: git. A common way to start a git-based build is:
cd [here] cd [here]
mkdir build mkdir build
cd build cd build
where "[here]" is the directory containing this `README' file and where "[here]" is the directory containing this `README' file and
the `configure' script. The Subversion repository is configured the `configure' script. The git repository is configured to support
to support this convention by ignoring `build' in this directory. this convention by ignoring `build' in this directory.
A separate build directory is better in case the Makefile A separate build directory is better in case the Makefile
organization changes, or in case the Makefiles lack some organization changes, or in case the Makefiles lack some
@ -238,18 +238,17 @@ Detailed instructions:
clean build directory when changing the --prefix value, because clean build directory when changing the --prefix value, because
the path gets wired into shared objects. the path gets wired into shared objects.
If you build frequently from the Subversion-based sources, beware If you build frequently from the git-based sources, beware that
that you may accumulate user- and version-specific information in you may accumulate user- and version-specific information in your
your "add-ons" directory, which you can most easily find by "add-ons" directory, which you can most easily find by evaluating
evaluating
(find-system-path 'addon-dir) (find-system-path 'addon-dir)
in Racket. In addition, if you configure with --enabled-shared, in Racket. In addition, if you configure with --enabled-shared,
you may accumlate many unused versions of the dynamic libraries in you may accumlate many unused versions of the dynamic libraries in
your installation target. your installation target.
After an "in-place" install without Subversion, the racket/src directory After an "in-place" install without git, the racket/src directory is
is no longer needed, and it can be safely deleted. Build information no longer needed, and it can be safely deleted. Build information is
is recorded in a "buildinfo" file in the installation. recorded in a "buildinfo" file in the installation.
For a build without --prefix (or with --enable-origtree) and without For a build without --prefix (or with --enable-origtree) and without
--enable-shared, you can safely move the install tree, because all --enable-shared, you can safely move the install tree, because all

View File

@ -1,7 +1,7 @@
(define old-dir (current-directory)) (define old-dir (current-directory))
(define new-dir "~/Desktop/gc6.7") (define new-dir "~/Desktop/gc6.7")
(define really-svn? #t) (define really-git? #t)
(require mzlib/file (require mzlib/file
mzlib/process) mzlib/process)
@ -22,12 +22,13 @@
(fill-table new-dir new) (fill-table new-dir new)
(fill-table old-dir old) (fill-table old-dir old)
(hash-table-for-each old (lambda (k v) (hash-table-for-each
old
(lambda (k v)
(let ([b (path->bytes k)]) (let ([b (path->bytes k)])
(when (or (regexp-match #rx#"CVS" b) (when (or (regexp-match? #rx#"^(?:^|/)(?:[.](?:git.*|svn)|CVS)(?:/|$)$" b)
(regexp-match #rx#"[.]svn" b) (regexp-match? #rx#"upgrade[.]ss$" b)
(regexp-match #rx#"upgrade[.]ss$" b) (regexp-match? #rx#"gc[.]h$" b))
(regexp-match #rx#"gc[.]h$" b))
(hash-table-remove! old k))))) (hash-table-remove! old k)))))
(define (content f n) (define (content f n)
@ -66,7 +67,7 @@
(define (go cmd) (define (go cmd)
(printf "CMD: ~a~n" cmd) (printf "CMD: ~a~n" cmd)
(when really-svn? (when really-git?
(system cmd))) (system cmd)))
(hash-table-for-each new (hash-table-for-each new
@ -82,13 +83,13 @@
(go (get-output-string s))) (go (get-output-string s)))
(let ([s (open-output-string)]) (let ([s (open-output-string)])
(fprintf s "cd ~a; svn add " (path->string old-dir)) (fprintf s "cd ~a; git add " (path->string old-dir))
(hash-table-for-each new (lambda (k v) (hash-table-for-each new (lambda (k v)
(fprintf s "~a " (path->string k)))) (fprintf s "~a " (path->string k))))
(go (get-output-string s))) (go (get-output-string s)))
(let ([s (open-output-string)]) (let ([s (open-output-string)])
(fprintf s "cd ~a; svn remove " (path->string old-dir)) (fprintf s "cd ~a; git rm " (path->string old-dir))
(hash-table-for-each old (lambda (k v) (hash-table-for-each old (lambda (k v)
(fprintf s "~a " (path->string k)))) (fprintf s "~a " (path->string k))))
(go (get-output-string s))) (go (get-output-string s)))