zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Aleksandr Mezin <mezin.alexander@gmail.com>
Cc: zsh-workers@zsh.org
Subject: RFC: Remove vcs_info backends cdv, svk, tla?  (was: Re: [PATCH v5] vcs_info: choose backend by basedir)
Date: Fri, 26 Nov 2021 08:09:27 +0000	[thread overview]
Message-ID: <20211126080927.GA15802@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <20210604061421.172899-1-mezin.alexander@gmail.com>

Aleksandr Mezin wrote on Fri, Jun 04, 2021 at 12:14:21 +0600:
> @@ -124,10 +129,59 @@ vcs_info () {
>          vcs_comm=()
>          VCS_INFO_get_cmd
> -        VCS_INFO_detect_${vcs} && (( found = 1 )) && break
> +        if VCS_INFO_detect_${vcs}; then
> +            # Most backends already set vcs_comm[basedir] to an absolute path
> +            # with symlinks resolved:
> +            #
> +            # * Backends using VCS_INFO_bydir_detect:
> +            #   bzr, cdv, darcs, fossil, hg, mtn, p4, svn
> +            #
> +            # * cvs - custom logic, but uses :P too
> +            #
> +            # * git - $(git rev-parse --show-toplevel) resolves symlinks and
> +            #   returns an absolute path
> +            #
> +            # * for tla (GNU Arch) I can't find any online documentation or
> +            #   packages (seems to be dead)
> +            #

There's https://savannah.gnu.org/projects/gnu-arch/.  It says tla is
"decommissioned" and hasn't had a release in 16 years.  There's also
<https://www.gnu.org/software/gnu-arch/>, but it doesn't alter the
bottom line.

> +            # * svk doesn't use :P modifier and returns the path as is from
> +            #   the config file (as far as I understand)
> +            #

Does anyone still use svk?  It was a "distributed version control for
Subversion" thing (https://metacpan.org/dist/SVK), but:

- It hasn't had a release since 2010

- Its homepage redirects elsewhere

- Its repository is 404 Not Found

- I haven't seen any mention of it on svn's lists in years

- The list of features at the top of its man page seems to be mostly
  features that git-svn and hgsubversion already take care of.  "Working
  copy without .svn" _might_ be an exception, if they mean no text
  bases; but they could just mean "there's a single .${vcs} dir at the
  top directory, rather than foo/bar/.${vcs} inside every versioned
  foo/bar/ directory", in which case, that's not a selling point either
  nowadays.

>

Looking at the other backends, cdv hasn't had a release in 16 years,
either.  Every other backend seems to be active to one degree or
another.

> +            # So I'm not sure whether to modify the backends or just resolve
> +            # the path here to be sure. VCS_INFO_get_data_* usually reads
> +            # vcs_comm[basedir] too. In particular, I'm not sure if it's safe to
> +            # resolve symlinks in vcs_comm[basedir] for svk.

The cdv, svk, tla backends presumably have no remaining users; having
them at all imposes extra costs on people making «vcs_info»-wide changes;
and if we remove them, we can always recover them from history if they
turn out to have users after all.

So, shall we remove these three backends?

Cheers,

Daniel


> +            # Because most backends already do :P substitution, I expect all
> +            # the info needed to resolve the path to be cached in memory by the
> +            # OS (so it shouldn't cause performance issues).
> +            basedir_realpath="${vcs_comm[basedir]:P}"


  parent reply	other threads:[~2021-11-26  8:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04  6:14 [PATCH v5] vcs_info: choose backend by basedir Aleksandr Mezin
2021-06-20 18:52 ` Lawrence Velázquez
2021-07-18 18:42   ` Lawrence Velázquez
2021-07-28 18:00     ` Bart Schaefer
2021-11-23 16:03 ` Aleksandr Mezin
2021-11-26  8:08 ` Daniel Shahaf
2021-11-26  8:09 ` Daniel Shahaf [this message]
2021-11-26  9:43   ` RFC: Remove vcs_info backends cdv, svk, tla? (was: Re: [PATCH v5] vcs_info: choose backend by basedir) Oliver Kiddle
2022-02-20  8:49   ` [PATCH] vcs_info, run-help: Remove Codeville (cdv), svk, GNU arch (tla) Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211126080927.GA15802@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=mezin.alexander@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).