From fecdcc004346845ff2da1fd64b05105a7a69cb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=BC=E5=90=B8=E4=BA=8C=E6=B0=A7=E5=8C=96=E7=A2=B3?= Date: Fri, 29 Mar 2013 12:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=84=9A=E6=9C=AC=EF=BC=8C?= =?UTF-8?q?=E5=BD=932=E4=B8=AA=E6=96=87=E4=BB=B6=E7=9A=84md5=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=97=B6=EF=BC=8C=E5=88=87=E6=B2=A1=E6=9C=89-a(--all)?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=81=9A=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E6=96=87=E4=BB=B6=E6=93=8D=E4=BD=9C=EF=BC=8C=E8=BF=99?= =?UTF-8?q?=E6=A0=B7=E5=8F=AF=E5=BF=BD=E7=95=A52=E4=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/svn-tools | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/svn-tools b/bin/svn-tools index 8349ca8..1b5593e 100755 --- a/bin/svn-tools +++ b/bin/svn-tools @@ -915,6 +915,8 @@ Examples: $to = realpath($to) . '/'; $this->glob_dir($from, $to); + + echo "\nall done.\n"; } private function glob_dir($from, $to) @@ -968,6 +970,12 @@ Examples: if (is_file($to_file)) { + if (!$this->is_all && md5_file($to_file)==md5_file($file)) + { + # 不是完整复制,且md5一样就不复制 + continue; + } + if (@copy($file, $to_file)) { echo "C $to_file\n";