Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57D2818226 for ; Mon, 12 Oct 2015 08:56:38 +0000 (UTC) Received: (qmail 94368 invoked by uid 500); 12 Oct 2015 08:56:16 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 94318 invoked by uid 500); 12 Oct 2015 08:56:15 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 94308 invoked by uid 99); 12 Oct 2015 08:56:15 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2015 08:56:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3ECBA180A6C for ; Mon, 12 Oct 2015 08:56:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.722 X-Spam-Level: X-Spam-Status: No, score=-0.722 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 59aORw3F43JU for ; Mon, 12 Oct 2015 08:56:13 +0000 (UTC) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.38]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 930E2439E8 for ; Mon, 12 Oct 2015 08:56:13 +0000 (UTC) Received: from [91.113.179.170] (helo=[192.168.92.20]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1ZlYtq-0004FU-0Z for dev@subversion.apache.org; Mon, 12 Oct 2015 10:56:06 +0200 To: dev@subversion.apache.org From: Marc Strapetz Subject: svn status API and missing switched flag Message-ID: <561B75B5.2070204@syntevo.com> Date: Mon, 12 Oct 2015 10:56:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Df-Sender: bWFyYy5zdHJhcGV0ekBzeW50ZXZvLmNvbQ== Consider following working copy for which directory "dir" is switched: $ svn status -v 814 813 marc . S 814 813 marc dir 814 356 strapetz dir\sub.txt Now, when invoking "svn status" in sub-directory "dir", the "switched" state is not displayed anymore: $ svn status -v 814 813 marc . 814 356 strapetz sub.txt From command line, this may be reasonable, because the user may expect to see the status "relative" to his current working directory. From API perspective, the missing "switched" flag is not expected. I guess that usually a non-root and non-infinity "svn status" will be invoked to efficiently update the state of a certain directory (at least we do so). Still the state is usually expected to be relative to the working copy root. To resolve this, I'd propose to change core "svn status" itself to evaluate the "switched" flag for the status root directory. This will result in an additional "S", but won't do any harm: $ svn status -v S 814 813 marc . 814 356 strapetz sub.txt