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

Re: adding something to svn

From: Eric Lee <eric_at_myprojects.srhost.info>
Date: Fri, 25 Jul 2008 00:56:24 +0800


I'am not sure how your folders are construct.
But here may be help.

If you need to add files to repository.
You have two chooses.

1.) import
c:\> cd wc
c:\wc> dir

 Directory of R:\temp\wc\phpbb

07/23/2008 05:07a <DIR> .
07/23/2008 05:07a <DIR> ..
07/23/2008 05:04a <DIR> svn

c:\wc> svnadmin create [path-to-repos]
c:\wc> svn import -m "initial imports" svn svn://localhost/repos/svn

2.) add files
c:\wc> svnadmin create [path-to-repos]
c:\wc> svn mkdir svn://localhost/repos/svn
c:\wc> svn co svn://localhost/repos/svn svn
c:\wc> dir
 Directory of c:\wc>
07/23/2008  05:07a      <DIR>          .
07/23/2008  05:07a      <DIR>          ..
07/23/2008  05:04a      <DIR>          svn
c:\wc> cd svn
c:\wc\svn> echo some-text > file1.txt
c:\wc\svn> svn add file1.txt
c:\wc\svn> svn status
A      file1.txt
c:\wc\svn> svn commit -m "added a new files"
Wish this help,
Get subversion, phpBB 3
  ----- Original Message ----- 
  From: N D 
  To: users_at_subversion.tigris.org 
  Sent: Friday, July 25, 2008 12:15 AM
  Subject: adding something to svn
  Hi all,
  I make a dir using svn mkdir.
  I want to add the contents of the working copy to this newly created directory.
  as far as i saw the svn manual, i saw "svn add files" i did not find anything like this "svn add <source> <URL_at_svn_repo>"
  is right now, my working copy is pointing to vx_v_z_abc and i want to to commit the contents of the working dir to the dir that i switched to using the svn switch command. will svn commit serve the purpose? so in short
  <local copy of vx_v_z_abc> to be commited to vx_v_z_abc in svn, will this happen if i just say svn commit -m "messge" will the wroking copy land in directory vx_v_z_abc???
  Niranjan Deshpande
  "Shut yourself from the world and create the reality you want" 
Received on 2008-07-24 18:56:58 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.