Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've seen in subversion tutorials that the way to add a folder to your repo is to do
mkdir foo svn add foo

But running

 svn mkdir foo
does the same thing, as far as I can tell. Is there a reason to mkdir then add instead of svn mkdir?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

The difference is that svn mkdir can operate directly on a URL:

svn mkdir svn://remote.host/what/ever

share|improve this answer

There's no functional different that I'm aware of.

One is simply longer to type than the other and potentially you could forget to svn add if you got out of the habit of using svn mkdir.

share|improve this answer

Traditionally, applications that do version control don't manage file attributes. From this point "mkdir foo; svn add foo" can be more flexible in some scenarios.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.