Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you remove a file from a subversion changelist?

Tags:

svn

changelist

I had a file in a subversion changelist that I later reverted. It is now still listed in the changelist even though it has no modification. How do I get rid of this changelist?

$ svn status

--- Changelist 'search jsps - don't delete':
        atlassian-jira/secure/views/navigator/navigator.jsp

I've tried

svn changelist --remove --changelist search\ jsps\ -\ don\'t\ delete --depth infinity

and

svn changelist --remove --changelist "search jsps - don't delete" --depth infinity
like image 387
Kirby Avatar asked Jun 17 '11 18:06

Kirby


People also ask

How do I delete a file from SVN?

To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

What is SVN Changelist?

Description. Used for dividing files in a working copy into a changelist (logical named grouping) in order to allow users to easily work on multiple file collections within a single working copy.

How do I delete a project in SVN repository?

Show activity on this post. Now, after performing "Click OK" you need to go to truck (or place where your project is saved in SVN) then select project(which you want to Delete) then right click -> Delete. This Will Delete project from subversion.


1 Answers

Changelists are separate from the regular "commit only new and marked stuff" policy. Explicitely removing the file from all changelists should work.

svn changelist --remove atlassian-jira/secure/views/navigator/navigator.jsp

To remove all files from all changelists, pass the top directory of the repository, like this:

svn changelist --remove --depth infinity .

Note the last dot, which specifies the current directory.

like image 61
phihag Avatar answered Oct 18 '22 06:10

phihag