Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6A431002D for ; Fri, 23 Aug 2013 13:37:39 +0000 (UTC) Received: (qmail 78715 invoked by uid 500); 23 Aug 2013 13:37:39 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 78642 invoked by uid 500); 23 Aug 2013 13:37:39 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 78635 invoked by uid 99); 23 Aug 2013 13:37:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 13:37:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.111.4.29] (HELO out5-smtp.messagingengine.com) (66.111.4.29) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 13:37:32 +0000 Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2167D207AC; Fri, 23 Aug 2013 09:37:11 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 23 Aug 2013 09:37:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=mesmtp; bh= r551B7qxBrb0IiuoCDJQBkgM6oI=; b=dxjhtSphH/adNoL/w0BIRMKqG3F8Hwh1 gM/v4b/37XIt0Jsi5M+4Grcs1TYLsXUn9RaQCSVCp4WLLdqsgRIRdDEEus1baqea rSht1v22rjViZvRPAR5jTJ0Sojmizqw+LDMjwhC0L5wmUM3xdo7rRYu47KtuTOiD avfg+mcAGLk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=r551B7qxBrb0IiuoCDJQBkgM6oI=; b=a2Z//kJxYztO1xbDB6/5C/yCWrtV S6YRGooGpC7Unx4w8HMa0X5555M5zcCtAwoPVCjw8gJxHy5B1wrFqcS4fURhJydr n/PM5wtzb0/sjBoj5n1Q0UI603J50WxhO/rT4pztffu4M7TftYzgVI/doBngute9 08bVny9HVJB/mcM= X-Sasl-enc: HgSlGHVQKvYDlRSPyFDXrQZ8KAKzL+U00YLLzcI8XJrM 1377265030 Received: from lp-shahaf.local (unknown [79.179.194.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 4574068011B; Fri, 23 Aug 2013 09:37:10 -0400 (EDT) Date: Fri, 23 Aug 2013 16:37:05 +0300 From: Daniel Shahaf To: Ben Reser Cc: users@subversion.apache.org Subject: Re: Feature Req: sorthand urls for branches/tags in CLI Message-ID: <20130823132809.GA3510@lp-shahaf.local> References: <5216F0B9.5070202@reser.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5216F0B9.5070202@reser.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Checked: Checked by ClamAV on apache.org Ben Reser wrote on Thu, Aug 22, 2013 at 22:18:49 -0700: > bA=^/project1/branches/branchA > svn merge $bA That was also the argument against adding ^/, wasn't it? The counter-argument is that "Make URL targets easier to input" is a problem that every user of the cmdline client has (scripts included, btw), so it makes sense to solve it centrally. > I'm sure you can probably even get your shell to be fancy and figure out > what project you're working in and apply the proper root (you have > access to this with svn info). > > Additionally I'm concerned that this just confuses the meaning for users > of how ^/ works. I can already see the user complaints that Subversion > merged the wrong thing for them because they forget -b. > > Let's just say that at this point I'm skeptical of the need for this. I don't like -b. It's a confusing syntax, mixing named and positional arguments (how would it work with 'svn diff --old=URL'?), interferering with the '--' convention, etc. But extending ^/bar to ^foo/bar is something I've long wanted to see, precisely so that URLs other than the repository root may be abbreviated. (Right now ^ must always be followed by /.) I've been thinking of a config file entry, mapping "foo" to expanded value of "^/foo", but an inherited property (so we don't need to figure out "/subversion" from the wc root URL's[1]) is an interesting alternative. A problem with the regexp captures approach is that it doesn't allow shortening the basename, while I would like to, say, shorten "fsfs-improvements" and "invoke-diff-cmd-feature" to "fsfs-imp" and, say, "idc". Perhaps we should extend the syntax to allow making something other than \1 (first capture group) the shortname of a given regexp match? Daniel [1] We can't assume a particular repository layout.