You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "ben@amigos24.net" <be...@amigos24.net> on 2008/07/22 16:54:08 UTC

How to remove folders from working copy folder without having to manually svn remove folder

Hi,

I am looking for a command line possibility not to have to manually 
perform all changes to folder structure files of the working copy, so 
that changes are automatically present in the repo after committing.

In other words:
- I have a workingcopy folder "ben".
- I delete the subfolder "deletefolder" from "ben"
- With tortoise I can simply mark the working copy folder, then click 
add, and Tortoise automatically adds / removes the respective changes to 
the folders and files.

What if there is  no tortoise on Ubuntu?

SOLUTION FOR ADDING: For adding I found out how to do that: "svn add *", 
it then adds the new folder and prompts for existing folders and files 
that they already exist.

NO SOLUTION FOR REMOVING: Is there a possibility to delete a folder from 
the working copy folder, then not having to remove the deleted folder 
with "svn remove deletefolder" and then to commit so that the folder 
will also be deleted from the repo.

If any out there know how to handle the problem, let me know. If there 
is a good GUI for svn administration like tortoise I would also be happy.

Best,
Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to remove folders from working copy folder without having to manually svn remove folder

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 22, 2008, at 11:54, ben@amigos24.net wrote:

> I am looking for a command line possibility not to have to manually  
> perform all changes to folder structure files of the working copy,  
> so that changes are automatically present in the repo after  
> committing.
>
> In other words:
> - I have a workingcopy folder "ben".
> - I delete the subfolder "deletefolder" from "ben"
> - With tortoise I can simply mark the working copy folder, then  
> click add, and Tortoise automatically adds / removes the respective  
> changes to the folders and files.
>
> What if there is  no tortoise on Ubuntu?
>
> SOLUTION FOR ADDING: For adding I found out how to do that: "svn  
> add *", it then adds the new folder and prompts for existing  
> folders and files that they already exist.
>
> NO SOLUTION FOR REMOVING: Is there a possibility to delete a folder  
> from the working copy folder, then not having to remove the deleted  
> folder with "svn remove deletefolder" and then to commit so that  
> the folder will also be deleted from the repo.
>
> If any out there know how to handle the problem, let me know. If  
> there is a good GUI for svn administration like tortoise I would  
> also be happy.

Basically, no. Use the svn commands to move, rename or delete items  
in a working copy. Do not attempt to detect these events after the  
fact. See the FAQ:

http://subversion.tigris.org/faq.html#wc-change-detection



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: How to remove folders from working copy folder without having to manually svn remove folder

Posted by John Niven <jn...@bravurasolutions.com>.
> -----Original Message-----
> From: ben@amigos24.net [mailto:ben@amigos24.net] 
> Sent: Wednesday, 23 July 2008 04:54
> To: subversion
> Subject: How to remove folders from working copy folder 
> without having to manually svn remove folder
> 
> Hi,
> 
> I am looking for a command line possibility not to have to 
> manually perform all changes to folder structure files of the 
> working copy, so that changes are automatically present in 
> the repo after committing.
> 
> In other words:
> - I have a workingcopy folder "ben".
> - I delete the subfolder "deletefolder" from "ben"
> - With tortoise I can simply mark the working copy folder, 
> then click add, and Tortoise automatically adds / removes the 
> respective changes to the folders and files.
> 
> What if there is  no tortoise on Ubuntu?

There are a number of cross-platform and Linux clients:
http://subversion.tigris.org/links.html#clients
http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients

I've not tried them, but NautilusSVN and naughtysvn apparently integrate
with Nautilus.  If you're using Kubuntu there are clients that integrate
with Konqueror, too.  There are numerous standalone clients that will
work with any desktop environment (some time ago I used RapidSVN on
Enlightenment DR17).

> 
> SOLUTION FOR ADDING: For adding I found out how to do that: 
> "svn add *", it then adds the new folder and prompts for 
> existing folders and files that they already exist.
> 
> NO SOLUTION FOR REMOVING: Is there a possibility to delete a 
> folder from the working copy folder, then not having to 
> remove the deleted folder with "svn remove deletefolder" and 
> then to commit so that the folder will also be deleted from the repo.
> 
> If any out there know how to handle the problem, let me know. 
> If there is a good GUI for svn administration like tortoise I 
> would also be happy.

I'd recommend a GUI client and stringly agree with Ryan that you
shouldn't delete from a repository simply because a file has been
deleted locally - what happens if you delete something in error?

However, "svn status" will list files (using the "!" indicator) that
have been deleted locally but not on the repository; if you really
wanted you could parse the results of "svn status" and execute "svn
delete" against the results.

Cheers
John

> 
> Best,
> Ben
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org