Changeset 15431 in project for release/4/qwiki/trunk/qwiki-svn.scm
- Timestamp:
- 08/13/09 17:06:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/4/qwiki/trunk/qwiki-svn.scm
r15421 r15431 38 38 (module qwiki-svn 39 39 (qwiki-repos-uri qwiki-repos-username qwiki-repos-password 40 get-history call-with-input-revision checkout-sources! update-sources!) 40 get-history call-with-input-revision checkout-sources! update-sources! 41 store-changes!) 41 42 42 43 (import chicken scheme) … … 86 87 (qwiki-repos-username) (qwiki-repos-password))) 87 88 89 (define (store-changes! source-path message) 90 (define (get-info path) 91 (let ((info '())) 92 (svn-client-info path 93 svn-opt-revision-unspecified 94 svn-opt-revision-unspecified 95 (lambda (path i) (set! info (cons i info))) 96 #f (qwiki-repos-username) (qwiki-repos-password)) 97 (and (not (null? info)) (car info)))) 98 (let loop ((source-path source-path)) 99 (if (get-info source-path) 100 (svn-commit source-path 101 (qwiki-repos-username) (qwiki-repos-password) 102 message) 103 (begin 104 (loop (pathname-directory source-path)) ; Add parent dirs if needed 105 (svn-add source-path (qwiki-repos-username) (qwiki-repos-password)) 106 (svn-commit source-path 107 (qwiki-repos-username) (qwiki-repos-password) 108 message))))) 109 88 110 )
Note: See TracChangeset
for help on using the changeset viewer.