名称

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.

别名

改变

Working copy; repository if operating on a URL

是否访问版本库

只有在对URl操作时会

选项

--message (-m) TEXT
--file (-F) FILE
--quiet (-q)
--parents
--with-revprop ARG
--username USER
--password PASS
--no-auth-cache
--non-interactive
--editor-cmd EDITOR
--encoding ENC
--force-log
--config-dir DIR

例子

在工作拷贝创建一个目录:

$ svn mkdir newdir
A         newdir

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

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

Committed revision 26.