[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn status should not show unmodified files in changelists

From: Julian Foad <julianfoad_at_apache.org>
Date: Wed, 6 Nov 2019 10:36:10 +0000

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
Received on 2019-11-06 11:36:12 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.