git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] remote-helpers: point at their upstream repositories

From
Junio C Hamano <gitster@pobox.com>
Date
May 19, 2014, 23:17 UTC
Message-ID
<xmqqvbt1uzo0.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqzjidv1y4.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> We could. Personally I don't see the point of making the warning any
>> more annoying....

If we were giving the users a choice of "no thanks, I'll keep using the obsolete one", then trying to be a low key and giving them a way to squelch with an advice.* config might make sense, but if we plan to remove/stub at as early as v2.1, I think annoyance is very much what we want, actually, because it clearly is the case that we do prefer users switching instead of waiting for v2.1.

How does this sound?
-- >8 --
From: Junio C Hamano <gitster@pobox.com>
Date: Mon, 19 May 2014 16:05:34 -0700
Subject: [PATCH] remote-helpers: give short instructions to download the
 latest
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 contrib/remote-helpers/git-remote-bzr | 6 ++++++
 contrib/remote-helpers/git-remote-hg  | 6 ++++++
 2 files changed, 12 insertions(+)
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index be4b9a3..c0cb652 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -46,6 +46,12 @@ import atexit, shutil, hashlib, urlparse, subprocess
 sys.stderr.write('WARNING: git-remote-bzr is now maintained independently.\n')
 sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-bzr\n')
 
+sys.stderr.write('''WARNING: You can pick a directory on your $PATH and download it, e.g.:
+WARNING:   $ wget -O $HOME/bin/git-remote-bzr \\
+WARNING:     https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr
+WARNING:   $ chmod +x $HOME/bin/git-remote-bzr
+''')
+
 NAME_RE = re.compile('^([^<>]+)')
 AUTHOR_RE = re.compile('^([^<>]+?)? ?[<>]([^<>]*)(?:$|>)')
 EMAIL_RE = re.compile(r'([^ \t<>]+@[^ \t<>]+)')
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 989df66..c07d1a5 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -28,6 +28,12 @@ import time as ptime
 sys.stderr.write('WARNING: git-remote-hg is now maintained independently.\n')
 sys.stderr.write('WARNING: For more information visit https://github.com/felipec/git-remote-hg\n')
 
+sys.stderr.write('''WARNING: You can pick a directory on your $PATH and download it, e.g.:
+WARNING:   $ wget -O $HOME/bin/git-remote-hg \\
+WARNING:     https://raw.github.com/felipec/git-remote-hg/master/git-remote-hg
+WARNING:   $ chmod +x $HOME/bin/git-remote-hg
+''')
+
 #
 # If you want to see Mercurial revisions as Git commit notes:
 # git config core.notesRef refs/notes/hg
-- 
2.0.0-rc3-442-ga28c44b
Previous: Junio C HamanoNext: Felipe Contreras
Message 32 of 40 in “remote-helpers: point at their upstream repositories”
  1. remote-helpers: point at their upstream repositoriesJunio C Hamano, May 15, 2014
  2. Felipe ContrerasMay 16, 2014
  3. Jeff KingMay 16, 2014
  4. Paolo CiarrocchiMay 16, 2014
  5. Jeff KingMay 16, 2014
  6. Felipe ContrerasMay 16, 2014
  7. Felipe ContrerasMay 16, 2014
  8. Junio C HamanoMay 16, 2014
  9. Felipe ContrerasMay 16, 2014
  10. James DenholmMay 17, 2014
  11. Felipe ContrerasMay 17, 2014
  12. James DenholmMay 18, 2014
  13. Felipe ContrerasMay 18, 2014
  14. Junio C HamanoMay 18, 2014
  15. Felipe ContrerasMay 19, 2014
  16. Junio C HamanoMay 19, 2014
  17. Michael HaggertyMay 20, 2014
  18. Johan HerlandMay 20, 2014
  19. Felipe ContrerasMay 20, 2014
  20. Felipe ContrerasMay 20, 2014
  21. Jeff KingMay 16, 2014
  22. Felipe ContrerasMay 17, 2014
  23. Jeff KingMay 17, 2014
  24. Felipe ContrerasMay 17, 2014
  25. Matthieu MoyMay 18, 2014
  26. Felipe ContrerasMay 18, 2014
  27. Junio C HamanoMay 18, 2014
  28. Felipe ContrerasMay 19, 2014
  29. Junio C HamanoMay 19, 2014
  30. Felipe ContrerasMay 19, 2014
  31. Junio C HamanoMay 19, 2014
  32. Junio C HamanoMay 19, 2014
  33. Felipe ContrerasMay 20, 2014
  34. Junio C HamanoMay 20, 2014
  35. Junio C HamanoMay 19, 2014
  36. Felipe ContrerasMay 20, 2014
  37. Junio C HamanoMay 20, 2014
  38. Felipe ContrerasMay 20, 2014
  39. Junio C HamanoMay 20, 2014
  40. Junio C HamanoMay 16, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.