[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Adding new files

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-09-09 19:06:10 CEST

On Sep 9, 2005, at 18:30, S I wrote:

> I just created new dir and moved bunch of files into it via Win
> Explorer. In a DOS prompt I did the following:
>
> 1. svn mkdir lib
> C:\trunk\build>svn mkdir lib
> A lib
>
> 2. svn add lib
> C:\trunk\build>svn commit -m "Creating files" lib
> Adding lib
>
> Committed revision 11.
>
> 3. cd lib
>
> 4. svn log filename
> svn: 'mail.jar' is not under version control
>
> What am I doing wrong? I thought do ing svn mkdir and svn add at a
> directory level automatically checked in the files under it.

"svn mkdir lib" is a shortcut for "mkdir lib && svn add lib". So when
you then performed an "svn add lib" after adding files to the lib
directory, it did nothing, because lib had already been added by the
"svn mkdir" command.

You could either have done it like this:

$ svn mkdir lib
# now add stuff to it via windows explorer
$ svn add lib/*
$ svn ci lib

Or like this:

$ mkdir lib
# now add stuff to it via windows explorer
$ svn add lib
$ svn ci lib

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 9 19:07:49 2005

This is an archived mail posted to the Subversion Users mailing list.