Changeset 16053 for lang/gauche

Show
Ignore:
Timestamp:
07/21/08 09:46:38 (4 months ago)
Author:
kiyoka
Message:

Added remove method to <svn-work> class.

Location:
lang/gauche/oldtype/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/svn.scm

    r15903 r16053  
    3939  (export init 
    4040          commit 
     41          remove 
    4142          status 
    4243          get-fullpath 
     
    122123 
    123124 
     125(define-method remove ((self <svn-work>)) 
     126  ;; mkdir  
     127  (remove-directory* (get-fullpath self)) 
     128  #t) 
     129 
     130 
    124131(define-method save-text-list ((self <svn-work>) wikiname text-list) 
    125132  (with-output-to-file (format "~a/edit/~a.ot" (get-fullpath self) wikiname) 
  • lang/gauche/oldtype/trunk/bin/batch.sh

    r16043 r16053  
    4545} 
    4646 
    47 force=1 
     47cnt=0 
    4848while : 
    4949do 
    50   task ${force} 
    51   force=0 
     50  if [ "${cnt}" = "0" ] ; then 
     51    task 1 
     52  else 
     53    task 0 
     54  fi 
     55 
     56  cnt=`expr ${cnt} + 1` 
     57  if [ "${cnt}" -gt "10" ] ; then 
     58    cnt=0 
     59  fi 
    5260done 
  • lang/gauche/oldtype/trunk/src/test.scm

    r15903 r16053  
    9191 
    9292      (test "ago string of lineno 1 <oldtype-timeline>" 
    93             "  (3 months ago)"  
     93            "  (4 months ago)"  
    9494            (lambda () 
    9595              (get-ago (log-by-lineno oldtype-timeline 1)))) 
    9696      (test "ago string of lineno 1 <oldtype-page>" 
    97             "  (3 months ago)" 
     97            "  (4 months ago)" 
    9898            (lambda () 
    9999              (get-ago oldtype-page 1))) 
     
    119119      (test "date,ago,rank,committer of lineno 1 <oldtype-page>" 
    120120            '((date  . "2008-03-20 21:36 (+0900)") 
    121               (ago   . "  (3 months ago)") 
     121              (ago   . "  (4 months ago)") 
    122122              (rank  . 5) 
    123123              (committer . "kiyoka")) 
     
    185185 
    186186      (let1 work 
    187             (make <svn-work> :url "http://genkan.sumibi.org/svn/newtype" :user "anonymous" :pass "anonymous" :basepath "/Users/kiyoka/work/tmp") 
     187            (make <svn-work> :url "http://genkan.sumibi.org/svn/newtype" :user "kahua" :pass "kahua" :basepath "/Users/kiyoka/work/tmp") 
    188188             
    189189            (test "Initialize svn work directory" 
     
    195195                  '("" "") 
    196196                  (lambda () 
    197                     (status work "_kiyoka"))) 
     197                    (begin 
     198                      (display (get-fullpath work)) 
     199                      (newline) 
     200                      (status work "_kiyoka")))) 
    198201 
    199202            (test "status of wikiname (some changes)" 
     
    202205                    (save-text-list work 
    203206                                    "test" 
    204                                     '("UnitTest用ページ。" "----" "##(comment)")) 
     207                                    `("UnitTest用ページ。" ,(number->string (sys-time)))) 
    205208                    (car (status work "test")))) 
    206209             
     
    210213                    #t 
    211214                    (lambda () 
    212                       (commit work))))) 
    213        
     215                      (commit work) 
     216                      (remove work))))) 
    214217      (test-end) 
    215218