On Thu, Nov 7, 2019 at 6:13 AM Daniel Shahaf <d...@daniel.shahaf.name> wrote:
> 2. As Nathan said, this can make it difficult to answer "Which unmodified > files > are in a changelist?". (Yes, it's still possible to answer this by parsing > the output of «svn info», but that's far from elegant, particularly since > it's > not line-based.) Much has happened, so a brief recap: Julian points out that 'svn status' prints unmodified items if they are in a changelist, which is contrary to the definition of 'svn status' (without modifiers) printing only locally modified items. I pointed out that if this is fixed, we need a way to list changelists and what files are associated to them. You can use 'svn status -v' but I pointed out that in a realistic working copy, you may get thousands of lines of output. Daniel suggested to leave the behavior of 'svn status' as-is, unless 'svn status' is run with both -v and -q. I'm not really sure how this morphed into a discussion about 'svn info', tab-delimited values, RFC822, XML, and feature branches, but if I may back up for a moment and talk about changelists again... I think this is a bug. 'svn status' does not print unmodified items in the "default" changelist, and that is as it should be. For consistency, unmodified items in an explicit changelist shouldn't be printed either. But how do you know what changelists you have and which files you've added to them? I don't like the idea of doing that with 'svn status - vq' or 'svn info' because: Properties have their own 'list' command, 'svn proplist'. Shelves have their own 'list' command, 'svn x-shelf-list'. In my mind, listing changelists (and which files are "in" them) should be a documented part of the changelist feature, not something achieved by a non-obvious invocation of 'svn status'. 'svn changelist --list' is not congruent to the way properties and shelves are listed; i.e., those have a separate top-level command like 'svn proplist'. So, perhaps 'svn changelists' (plural)? That lines up with 'svn x-shelves', but I don't like that it differs only by one letter from 'svn changelist'. Perhaps 'svn changelist' or 'svn changelists' with no additional parameters should print the changelists and their files instead of the current behavior which outputs E205001? Nathan