Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:42:44+00:00 2026-06-12T23:42:44+00:00

I created a changelist by doing… $ svn changelist my_changes … added files to

  • 0

I created a changelist by doing…

$ svn changelist my_changes

… added files to it, and then committed the changelist…

$ svn ci --changelist my_changes --keep-changelists

… so now, I have “kept” my changelist and it shows up every time I view status.

$ svn status
... modified/added/deleted files listed here...

--- Changelist 'my_changes':
... files that are a part of this changelist listed here...

I “kept” the changelist for a reason, but I don’t need it anymore so I’m ready to remove it. How do I remove this changelist from SVN? I know how to remove files from the changelist, but not the changelist itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:42:45+00:00Added an answer on June 12, 2026 at 11:42 pm

    Remove all the associated files from a changelist and it’ll disappear.

    Official way

    See https://stackoverflow.com/a/15992735/253468

    svn changelist --remove --recursive --cl my_changes .
    

    Manual way

    i.e. svn changelist --remove file.name

    D:\Programming>mkdir test
    D:\Programming>cd test
    D:\Programming\test>svnadmin create .
    D:\Programming\test>svn co file:///D:\Programming\test co
    Checked out revision 0.
    D:\Programming\test>cd co
    D:\Programming\test\co>echo "hello" > test.file
    D:\Programming\test\co>svn add test.file
    A       test.file
    
    D:\Programming\test\co>svn status
    A       test.file
    
    D:\Programming\test\co>svn changelist mycl test.file
    A [mycl] test.file
    
    D:\Programming\test\co>svn status
    --- Changelist 'mycl':
    A       test.file
    
    D:\Programming\test\co>svn changelist --remove test.file
    D [mycl] test.file
    
    D:\Programming\test\co>svn status
    A       test.file
    

    Automation in Bash

    # Remove all files from a specific CL
    # Usage: svn_remove_cl my_changes
    function svn_remove_cl() {
        svn status |\
        sed -n "/--- Changelist '$1':/,/--- Changelist.*/p" |\
        grep -v '^--- Changelist' |\
        awk '{print $2}' |\
        xargs svn changelist --remove
    }
    

    Explanation:

    • svn status: output all the modified files
    • sed: find the changelist and take the output after the CL title until the next CL or the end of svn status‘s output
    • grep: remove the CL titles from the buffer
    • awk: remove the file statuses, keep only the filenames (i.e. the second column)
    • xargs: put each line as an argument to svn changelist
      (may need tweaks if you have spaces or special characters in the filenames)

    Example run

    ~/tmp/wc$ svn status
    A       d
    
    --- Changelist 'cl_a':
    A       a
    A       e
    A       f
    
    --- Changelist 'cl_x':
    A       b
    A       c
    ~/tmp/wc$ svn_remove_cl cl_x
    Path 'b' is no longer a member of a changelist.
    Path 'c' is no longer a member of a changelist.
    ~/tmp/wc$ svn status
    A       b
    A       c
    A       d
    
    --- Changelist 'cl_a':
    A       a
    A       e
    A       f
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I accidentally created a new changelist with files from WORKSPACE not from DEPOT and
Created a new Android project. Added the library (https://github.com/johannilsson/android-actionbar) for instructions http://www.jetbrains.com/idea/webhelp/sharing-android-source-code-and-resources-using-library-projects.html . In
In perforce changelists get renumbered on submission. So for e.g. when the changelist was
created a singleview application with storyboard. Added three viewcontrollers apart from the one view
In my Django application I have Guest user accounts that are created for all
Created a button, now tried to add it to the screen and im getting
In a model's changelist page on admin, I added a DateTimeField birth to search_fields.
We have created one list its name is => MobileTechSupport but in Web Address(below)
Created a javascript widget. Had problems with same origin policy. I added the callback
I have a custom httpclient that I created to take in my custom trust

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.