How do you remove a file from a subversion changelist?

Kirby picture Kirby · Jun 17, 2011 · Viewed 17k times · Source

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

Answer

phihag picture phihag · Jun 17, 2011

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.