此 Subversion 导入命令适用于 dos 命令行:
"C:\Program Files\Subversion\bin\svn.exe" import c:\myproj file:///c:/svnrepo/myproj -m "test"
如果我尝试使用此脚本通过 Rebol Call Command 发送相同的命令:
Print "This command will and your files to the repository without requiring a working copy"
repo-directory: to-local-file ask "repo: "
project-subdirectory: to-local-file ask "project: "
source-directory: to-local-file ask "source directory: "
comment: ask "comment: "
command: rejoin [{"} Subversion.Directory "bin\svn.exe" {"} " import " source-directory " file:///" (replace/all (to-local-file repo-directory) "\" "/") "/" project-subdirectory " -m " {"} comment {"}]
call/wait/console command
我会得到这个
repo: c:\svnrepo
project: myproj
source directory: c:\myproj
comment: test
svn: The given propagation message is a path (-F was this intended ?) ; force with
'--force-log'
== 1
command 的值与 Dos 命令相同:
>> command
== {"C:\Program Files\Subversion\bin\svn.exe" import c:\myproj file:///c:/svnrepo/m
yproj -m "test"}
>>
所以我附加了 --force-log 并且它确实可以工作,但我仍然想知道 Rebol 的行为不像 Dos Command 的原因,如果有一个我忽略了的话。