svn status doesn't generally show unmodified files, except with '-v'.
However, in changelists, it shows unmodified files, even without '-v'

I am finding this to be a inconsistent, and a nuisance because I am currently working on a task in which I have a lot of files potentially modified, in two or more groups which I want to commit separately, scattered across paths. The use case seems right for changelists, but "svn status" shows a screenful of non-changed files.

Demo:
[[[
$ touch a b c d; svn add a b c d; svn ci -m ""; svn up
...
$ echo hello > b
$ echo hello > d
$ svn cl foo c d
A [foo] c
A [foo] d
$ svn status -v
                 1        1 julianfoad   .
                 1        1 julianfoad   a
M                1        1 julianfoad   b
--- Changelist 'foo':
                 1        1 julianfoad   c
M                1        1 julianfoad   d
$ svn status
M       b
--- Changelist 'foo':
        c
M       d
]]]

File 'c' shows up in the plain 'svn status' even though it is unmodified.

I propose we should change this so unmodified files are not listed. It would look like this:

[[[
$ svn status
M       b
--- Changelist 'foo':
M       d
]]]

A changelist heading is printed only when a file in that changelist is listed, so there will be no heading if no files in the changelist are modified. It would look like this:

[[[
$ svn revert b d
Reverted 'b'
Reverted 'd'
$ svn status -v
                 1        1 julianfoad   .
                 1        1 julianfoad   a
                 1        1 julianfoad   b
--- Changelist 'foo':
                 1        1 julianfoad   c
                 1        1 julianfoad   d
$ svn status
]]]

Thoughts?

- Julian

Reply via email to