From owner-freebsd-ports@freebsd.org Sat Apr 2 19:27:25 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18D3BAECEF5 for ; Sat, 2 Apr 2016 19:27:25 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-lb0-x242.google.com (mail-lb0-x242.google.com [IPv6:2a00:1450:4010:c04::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FCC71E49 for ; Sat, 2 Apr 2016 19:27:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-lb0-x242.google.com with SMTP id q4so14308500lbq.3 for ; Sat, 02 Apr 2016 12:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ibrzy9uqVIDNcNcjcpSvZg9rzoYt7g/FadBqpxTzx3M=; b=GtC2CfBD5KlxmSTiCCM6eDctzVGhKBpu6JlZ6b9uP3QvkFF3fVRP93cDx85OPDDslf EsxvqbY22A0+sCTKSCp8pyACpdIPaZKDW5SkNrpH1v4HJmioWz3zx/LdHZXjw+piQUlk KCEKpdA1sUflV5Q8ANxVE58uF44hjeiQddnoWbLTENbJM8eXwd8ex3B54VgrAG6D2qds Y6uqTbYgNOVryOxvnZSEj/oFmsZZWa0TWVPfnO46RBWC9djikVgZC0BltIOiyrbW2F/m TMgLMCsH3fkY8lZIEBOdOu5iRaBCVXDJCvga5r5+9dm3PH9TGyHtzykhfT+/D1C2tic8 bRMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ibrzy9uqVIDNcNcjcpSvZg9rzoYt7g/FadBqpxTzx3M=; b=Qv3g5isYEYe/Er5gdKyuWSNg9e5wQhiEXxbgUr18HLakgdqkKzZAKKfYaChEwVgYkN Bn6vWPk28f8qfsqLLf/Ke80UUe+25KZ/D9qb5/TWb/u4/h4qVdJ2ZxG7OoyV44gie6Td GP65CphbF8n+8g/73LI7MJVoIcdAKAUsWKqmh77mSL69Q7U39A6xOR9HOSLpVIlU4t2l dSZr0V1JGTD9OxinAgbg9DeEpoMYa7P3iE27DTQsVlf2sdwVzf0Ihh5OSSudr7/6AfcY 9uB86+fsNoZvvW3zHrqHHwR/UMqJoQXPduImeoa4k4Z4dBFbzS5CnCedsHGtJmINKDTK tY/g== X-Gm-Message-State: AD7BkJJu6e/ZUs3l1KRiNJZBRlftEjh4iKlcYpf9j7kzsEl0Uxjb870FJQf7+8NoLuXjHQ== X-Received: by 10.28.226.212 with SMTP id z203mr4544062wmg.9.1459625242838; Sat, 02 Apr 2016 12:27:22 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id ll9sm20247069wjc.29.2016.04.02.12.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Apr 2016 12:27:22 -0700 (PDT) Sender: Baptiste Daroussin Date: Sat, 2 Apr 2016 21:27:20 +0200 From: Baptiste Daroussin To: Kevin Oberman Cc: Jeffrey Bouquet , FreeBSD Mailing List Subject: Re: Need an expect script or p5-*Expect* to lessen keystrokes upon large ports tree changes Message-ID: <20160402192720.GD5214@ivaldir.etoilebsd.net> References: <56FFC9F4.3060102@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lc9FT7cWel8HagAv" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2016 19:27:25 -0000 --lc9FT7cWel8HagAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 02, 2016 at 12:21:03PM -0700, Kevin Oberman wrote: > On Sat, Apr 2, 2016 at 6:32 AM, Jeffrey Bouquet via freebsd-ports < > freebsd-ports@freebsd.org> wrote: >=20 > > Today svn-of-ports has about 600 (tc,mc) /200 (r) =3D 800 responses > > required (tree and etc conflicts) > > > > > > -----------------------------------------------------------------------= --------------------- > > > > 1... > > > > Select: > > (mc) prepare for updating moved-away children, if any (recommended), > > (p) postone, (q) quit resolution, (h) help: > > > > [ I need expect to return mc, and a RET ] IF expect works upon svn > > responses > > > > 2... > > > > Select: > > (p) (df) (e) (m) > > (mc) (tc) > > (s) > > > > [ I need expect to return tc , and a RET] Sorry for the omitted svn > > context > > > > 3... > > > > Select: > > (r) (p) (q) (h) [ sorry for the omitted svn > > context] > > > > [I need expect to return r , and a RET ] > > > > > > > > > > -----------------------------------------------------------------------= ---------------------------------------------------------- > > > > Writing this request about 100/800 done for today, so cannot help this > > time, not > > urgent -- better yet if it was integrated into svn as a feature... > > > > Seems that, once-a-year or so, it is way too time consuming all of a > > sudden, and sometimes > > exceedingly inconvenient -- so it would be nice to have a backup plan. > > > > I will provide context in a followup, after a few days, if that is necc. > > for some expert or > > semi-expert in expect to craft a script. > > > > Thanks in advance, or any other ideas appreciated. Not wanting to waste > > anyone's time. > > > > Jeff > > >=20 > I am not volunteering to write an expect script for you though it could be > done with either expect or p5-Expect-Simple. Expect scripts, if reliable, > are very difficult to write and mistakes can, in many cases, be disastrou= s. > I had to write and support scripts to talk to network routers and switches > and I can't recommend it. There is always some possible response that you > either didn't know about or thought you would never receive that blows > things out of the water. And screen scraping is always risky as a minor > change between versions can break everything. >=20 > I am concerned with why this is happening. I have run "svn up /user/ports" > nightly for years with no issues like you describe. This simply should not > be happening. I'm curious as to why. >=20 > Are you running svn in a script or manually? What command are you using? > What version of subversion is installed or are you running the base > svnlite? (I use the full-blown subversion.) > Are you manually doing any edits to the ports tree? > Have you looked at the output of "svn status /usr/ports"? svn update --accept tc should do the trick, no need for an expect script Best regards, Bapt --lc9FT7cWel8HagAv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXAB0YAAoJEGOJi9zxtz5a9IQP/imot3ReKnSVkrDuuovI+M0k pp6iMsnOp8usgnYT3OazLCnjum0xSPMjFYxH1cuQed16PvZ2PTGVftY5QgwbDhVx Iuvf/5C+TkFjZ2U2SqplVNB6l3C/dEEENUy3wZmD4MinbqNNdt8d2Q8bbZwMAxqY NJ/QH8Zf/ihuSd+bUaBIyDrbH17XKGBkCEnCSn/S6dVB2enkyN7JQNv2jOlMUkzB +gav7lu4/BcdgEP1/W2PwwDuuNXeRbJbKqLisIwFcnWu9bO5/NvMWME4q2polPNF qwLmGz+SE+G33CQcO2NSOujwA/VZrNfO1LDFuNimWTbKUYPhYGdKx6fjhBjsZJ1G QiSAdsJVZdQ7qJAbs6S5uZ/joEfIUwhLJtyMISwUYVgPz9DZQKN2mxeuxlTj1gTB a5Q644t4ihEH6U7WhQhnp6nYMX68hSRbqSlx/B9i9lfqT8IRVckyZcG1OZ8c90ut 0GBO5cm9dvCnrykTAq+2dzQGhr5uakudoEDe7zTO3NWcs7TSBd4PEsDj2se0BYPB sUgZCml3aY6jYQAaO4ROqfpPd63DSSDclKKSWl2UOIwBoVbEbJ73Om/sVwtxL6PM aEpoQBIx6xboVMaA3RffTQsqMnPAsFwiS/PtMl1g4uUSiQd6Resr1LFqt30H5Mio KOZMgNagJipLVKEeYCu8 =+tZZ -----END PGP SIGNATURE----- --lc9FT7cWel8HagAv--