名称

svn mkdir — 创建一个纳入版本控制的新目录。

概要

svn mkdir PATH...

svn mkdir URL...

描述

Create a directory with a name given by the final component of the PATH or URL. A directory specified by a working copy PATH is scheduled for addition in the working copy. A directory specified by a URL is created in the repository via an immediate commit. Multiple directory URLs are committed atomically. In both cases, all the intermediate directories must already exist unless the --parents option is used.

选项

--editor-cmd CMD
--encoding ENC
--file (-F) FILENAME
--force-log
--message (-m) MESSAGE
--parents
--quiet (-q)
--with-revprop ARG

例子

在工作副本创建一个目录:

$ svn mkdir newdir
A         newdir

在版本库创建一个目录(立即提交,所以需要日志信息):

$ svn mkdir -m "Making a new dir." http://svn.red-bean.com/repos/newdir

Committed revision 26.