From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,MPART_ALT_DIFF_COUNT, RCVD_IN_DNSWL_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 0d1cbde3 for ; Sun, 25 Aug 2019 09:47:41 +0000 (UTC) Received: (qmail 15831 invoked by alias); 25 Aug 2019 09:47:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24185 Received: (qmail 8145 invoked by uid 1010); 25 Aug 2019 09:47:31 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25545. spamassassin: 3.4.2. Clear:RC:0(209.85.128.54):SA:0(-0.9/5.0):. Processed in 3.618634 secs); 25 Aug 2019 09:47:31 -0000 X-Envelope-From: cristiano.demichele@uniroma1.it X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniroma1.it; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=xSdgebITBqfX+qKhgvms/dQqC766kiMPyTdjBp8+ZDU=; b=Peoy3lZFqGZaEQDOi8Z9/81+wVUzhz9+plsy0HDhnqgkaCgLl+iHolnk2eHTmx7nGl 6R4tA3QsWWkW4JflS5SX2Jkpbm6ujl8CXVC7H+ZGNzzUWnO/QigL3+FEo2bAeU8xFdUa VQz5AdfozCJTUo1FSZYSPEC/WQisLa1exEzWC02hk8f6sF+oMjVudxiP2dmUuniMCknB IiSJLhW9sqO5YPvWP0OYhJ0Q5QwowtocIAq7hitYoioI+W4mzZzvGBbAo7kxtyEeoE7s 0WS6ZtQ5bHZUlq1AfT/IPV+3+thrIvl53q8L6DoBQjhrTcSHnUIW3dNGzrfK/IKjFXRC Zihg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=xSdgebITBqfX+qKhgvms/dQqC766kiMPyTdjBp8+ZDU=; b=go5kulmHkp7qmMPeCAweOkNms/nxB2s4dS20IqqjvCMXbH/W7PVoXawSpix8gjin0B 6fQD7X5viT7QgApTkNde58y2NcaXrgjLY9o+n7DwLs2z5pDOcdRDsKFfb/rsKjDSUc9M QGIJpMvl6ZsLOW+gjsPEnRCy3ymCFhCfMJmNkSlFGAZgava6vWwDOo6ls6/6lrB1mGLF Wt2ATKhJA74a4kGMePUODUmjy/fSU9nkps1vcND3moXa9S85+BOLl0D88/3XDgAsBcHD 85uC3Mj/U0h7atbnKRxeMjJkmv+S33Xr+S+mc8tGhrt6B5j+03MGP18MB/9PWPkCwaNe L+fw== X-Gm-Message-State: APjAAAUOuwW6TN33+LFJ4kT5+FMwREgi5EseSZ5c8yEuGc/gepbKbMIq PcQ+HtTbfxR1v7EgYIgJ1huUDQ== X-Google-Smtp-Source: APXvYqzZcQ2U//yVA1j591CmehKjNTLsnu8dEAgSFfnIwL2+zM9VXUp6yRjqiHWcRNmokSrHsB+XHA== X-Received: by 2002:a05:600c:23d1:: with SMTP id p17mr14638434wmb.175.1566726411807; Sun, 25 Aug 2019 02:46:51 -0700 (PDT) From: Cristiano De Michele Message-Id: <554D7DB9-FBB7-4311-ABC4-FB29E1F8F710@uniroma1.it> Content-Type: multipart/alternative; boundary="Apple-Mail=_580BBB29-333D-4A4A-9EA0-701A08DD058B" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: subversion complete functions obsolete Date: Sun, 25 Aug 2019 11:46:49 +0200 In-Reply-To: Cc: Cristiano De Michele , zsh-users@zsh.org To: Daniel Shahaf References: <5521481D-C84A-449A-BBF7-0C429868247B@uniroma1.it> <20190824172433.c4v252jc4czjsyay@tarpaulin.shahaf.local2> <7E7BD433-3D39-4D86-9EAA-6DE282B5CFAF@uniroma1.it> <35D00560-E05B-40F1-B581-43BAAC418C32@uniroma1.it> X-Mailer: Apple Mail (2.3445.104.11) --Apple-Mail=_580BBB29-333D-4A4A-9EA0-701A08DD058B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear Daniel, attached you can find the diff file which you requested, cheers C. ____________ Cristiano De Michele, Ph.D. =20 Department of Physics Tel. : +390649913524 = =20 University of Rome "La Sapienza" Fax : +39064463158 = =20 Piazzale Aldo Moro, 2 =20 I-00185 Roma - Italy =20 homepage: http://www.roma1.infn.it/~demichel = > Il giorno 24 ago 2019, alle ore 23:56, Daniel Shahaf = ha scritto: >=20 > Cristiano De Michele wrote on Sat, 24 Aug 2019 21:41 +00:00: >> attached you can find the diff file which you requested, >=20 > Thanks! Yes, that's the right form to use in the future. >=20 --Apple-Mail=_580BBB29-333D-4A4A-9EA0-701A08DD058B Content-Type: multipart/mixed; boundary="Apple-Mail=_C88C8BFE-84E4-4DA4-B773-9D5BADB058D0" --Apple-Mail=_C88C8BFE-84E4-4DA4-B773-9D5BADB058D0 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Dear Daniel,
attached you can find the diff file which you requested,

cheers C.

--Apple-Mail=_C88C8BFE-84E4-4DA4-B773-9D5BADB058D0 Content-Disposition: attachment; filename=subversion_patch.txt Content-Type: text/plain; x-unix-mode=0644; name="subversion_patch.txt" Content-Transfer-Encoding: quoted-printable --- _subversion_original_zsh_5.7.1 2019-08-24 09:54:06.000000000 = +0200 +++ _subversion_orthogonal 2019-08-24 22:10:57.000000000 +0200 @@ -1,5 +1,9 @@ #compdef svn svnlite=3Dsvn svnadmin svnadmin-static=3Dsvnadmin =20 +# This is the file provided by zsh 5.7.1 patched in such a way that I = removed from all the calls +# to _file zsh function the option -g and the relative argument, thus = making completion less smart +# with compared to original version. + _svn () { local curcontext=3D"$curcontext" state line expl ret=3D1 typeset -A opt_args @@ -106,23 +110,23 @@ case $cmd in; (add) args+=3D( - '*:file:_files -g "*(^e:_svn_controlled:)"' + '*:file:_files' ) ;; (commit) args=3D( ${args/(#b)(*--file*):arg:/$match[1]:file:_files} - '*:file:_files -g "*(e:_svn_status:)"' + '*:file:_files' ) ;; (delete) args+=3D( - '*:file:_files -g ".svn(/e:_svn_deletedfiles:)"' + '*:file:_files' ) ;; (diff) args+=3D( - '*: : _alternative "files:file:_files -g = \*\(e:_svn_status:\)" "urls:URL:_svn_urls"' + '*: : _alternative "files:file:_files" = "urls:URL:_svn_urls"' ) ;; (help) @@ -138,8 +142,8 @@ ;; (log) args+=3D( - '1: : _alternative "files:file:_files -g = \*\(e:_svn_controlled:\)" "urls:URL:_svn_urls"' - '*:file:_files -g "*(e:_svn_controlled:)"' + '1: : _alternative "files:file:_files" = "urls:URL:_svn_urls"' + '*:file:_files' ) ;; (mergeinfo) @@ -161,12 +165,12 @@ ;; (resolved) args+=3D( - '*:file:_files -g "*(e:_svn_conflicts:)"' + '*:file:_files' ) ;; (revert) args+=3D( - '*:file:_files -g = "(.svn|*)(/e:_svn_deletedfiles:,e:_svn_status:)"' + '*:file:_files' ) ;; (unshelve) @@ -308,44 +312,6 @@ return ret } =20 -(( $+functions[_svn_controlled] )) || -_svn_controlled() { - [[ -f ${(M)REPLY##*/}.svn/text-base/${REPLY##*/}.svn-base ]] -} - -(( $+functions[_svn_conflicts] )) || -_svn_conflicts() { - [ -n $REPLY.(mine|r<->)(N[1]) ] -} - -(( $+functions[_svn_deletedfiles] )) || -_svn_deletedfiles() { - # Typical usage would be _files -g '.svn(/e:_svn_deletedfiles:)' - local cont controlled - reply=3D( ) - [[ $REPLY =3D (*/|).svn ]] || return - controlled=3D( $REPLY/text-base/*.svn-base(N:r:t) ) - for cont in ${controlled}; do - [[ -e $REPLY:h/$cont ]] || reply+=3D( ${REPLY%.svn}$cont ) - done -} - -(( $+functions[_svn_status] )) || -_svn_status() { - local dir=3D$REPLY:h - local pat=3D"${1:-([ADMR~]|?M)}" - - zmodload -F zsh/stat b:zstat 2>/dev/null - local key=3D"$(zstat +device $dir):$(zstat +inode $dir)" - local mtime=3D"$(zstat +mtime $dir/.svn/entries)" - - if (( ! $+_cache_svn_status[$key] || _cache_svn_mtime[$key] !=3D = mtime )); then - _cache_svn_status[$key]=3D"$(_call_program files svn status -N = $dir)" - _cache_svn_mtime[$key]=3D"$mtime" - fi - - (( ${(M)#${(f)_cache_svn_status[$key]}:#(#s)${~pat}*$REPLY} )) -} =20 (( $+functions[_svn_remote_paths] )) || _svn_remote_paths() { --Apple-Mail=_C88C8BFE-84E4-4DA4-B773-9D5BADB058D0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
____________
Cristiano De Michele, = Ph.D.           
Department = of Physics                 =       Tel.  :  +390649913524    =                     =                     =               
University of Rome  "La Sapienza"    Fax =  :  +39064463158            =                     =                     =     
Piazzale Aldo Moro, 2     =                     =      
I-00185 Roma - Italy  
homepage: http://www.roma1.infn.it/~demichel







Il giorno 24 ago 2019, alle ore 23:56, Daniel Shahaf <d.s@daniel.shahaf.name> ha scritto:

Cristiano De Michele wrote on Sat, 24 Aug 2019 21:41 = +00:00:
attached you = can find the diff file which you requested,
Thanks!  Yes, that's the right form to use in the = future.


= --Apple-Mail=_C88C8BFE-84E4-4DA4-B773-9D5BADB058D0-- --Apple-Mail=_580BBB29-333D-4A4A-9EA0-701A08DD058B--