[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-issues
Subject:    [Issue 4089] New - svn miss to checkout one or more subdirectories
From:       finder () tigris ! org
Date:       2011-12-29 12:37:23
Message-ID: iz4089 () subversion ! tigris ! org
[Download RAW message or body]

http://subversion.tigris.org/issues/show_bug.cgi?id=4089
                 Issue #|4089
                 Summary|svn miss to checkout one or more subdirectories and no
                        | error message
               Component|subversion
                 Version|1.6.x
                Platform|All
                     URL|
              OS/Version|other
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|unknown
             Assigned to|issues@subversion
             Reported by|finder






------- Additional comments from finder@tigris.org Thu Dec 29 04:37:22 -0800 2011 -------
Suppose that there is a svn address
https://10.38.90.34/app/tools/tags/ts/ts_stable_101_PD_BL, it's a tag for
https://10.38.90.34/app/tools/ts. 
And there are some subdirectories under ts, let's call them ts_a, ts_b, ts_c... 

Use command 'svn co https://10.38.90.34/app/tools/tags/ts/ts_stable_101_PD_BL
./ts' to checkout ts.
Some times, one or more subdirectories were not downloaded. But the 'svn co'
operation returned 0 and no error message prompted.
I write a script to reproduce this problem, it happened one or two times in 1000
times.

Detail of the script:
function print() 
{
    nowtime=`date +%Y-%m%d-%H:%M --date='today'`
    echo "$nowtime $1" >> run.log 
}
function checkout_and_check()
{
    run_fail=0
    if [ -d "./ts" ];then print "rm directory failed!";run_fail=1; fi
    svn --force co https://10.38.90.34/app/tools/tags/ts/ts_stable_101_PD_BL ./ts
    if [ $? -ne 0 ];then
        print "check out fail!"
        run_fail=1
    fi
    if [ ! -d "./ts/deploy" ];then
        print "check directory fail!"
        run_fail=1
    fi
    if [ $run_fail -ne 0 ];then
        mv "./ts" "./ts.$1"
    else    
        /bin/rm -fr "./ts" 
    fi
    sleep 3 
    return $run_fail
}
/bin/rm -f run.log 
for((i=0;i<1000;i++))
do
    checkout_and_check $i
    if [ $? -ne 0 ];then
        print "Fail at index:$i"
    fi
done

print "well done!"

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=463&dsMessageId=2902460

To unsubscribe from this discussion, e-mail: [issues-unsubscribe@subversion.tigris.org].
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic