Subversion Tip of the Week

Creating Changelists from the Command Line

In the world of modern software development, it’s not unusual for developers to be working on multiple, unrelated changes within the same project. In these situations, Apache Subversion‘s changelists can be an invaluable tool for keeping track of which changes relate to which part of the development effort.

Changelists are labels that can be used to group related files together. Files can be added to a changelist with the ‘svn changelist’ command, followed by the name of the changelist, and the file’s path:

svn changelist “Changelist-name” {path}

In this example, we are adding a text file called ‘Wiki’ to a changelist called ‘Changelist’:

You can add as many files as you want to each changelist, and can create multiple changelists within the same working copy. If you need to check on the status of your changelists, you can use the ‘svn status’ command, followed by the location of your working copy:

This will list all the files that are associated with the different changelists in your working copy.

Tip: There are some limitations worth baring in mind when using changelists:

    • Changelists cannot be sent to the repository, and therefore cannot be shared.
    • Changelists can only be assigned to files, and not directories.
    • Files can only be assigned to one changelist at a time.


0 Responses to “Subversion Tip of the Week”

  • No Comments

Leave a Reply