mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
rage: use pastry instead of arc paste
Summary: `pastry` is the modern replacement for `arc paste`. Let's use it in `hg rage` instead of `arc paste`. Reviewed By: singhsrb Differential Revision: D14172108 fbshipit-source-id: 6586b9a8d8b90bac55d91baed852edbc7c1d9db9
This commit is contained in:
parent
65ea22225b
commit
fd1ccf44e3
@ -90,7 +90,7 @@ def _tail(userlogdir, userlogfiles, nlines=100):
|
||||
|
||||
|
||||
rageopts = [
|
||||
("p", "preview", None, _("print diagnostic information without doing arc paste"))
|
||||
("p", "preview", None, _("print diagnostic information without uploading paste"))
|
||||
]
|
||||
|
||||
|
||||
@ -439,7 +439,7 @@ def rage(ui, repo, *pats, **opts):
|
||||
with progress.spinner(ui, "saving paste"):
|
||||
try:
|
||||
p = subprocess.Popen(
|
||||
["arc", "paste", "--lang", "hgrage", "--title", "hgrage"],
|
||||
["pastry", "--lang", "hgrage", "--title", "hgrage"],
|
||||
stdout=subprocess.PIPE,
|
||||
stdin=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
@ -448,7 +448,7 @@ def rage(ui, repo, *pats, **opts):
|
||||
out, err = p.communicate(input=msg + "\n")
|
||||
ret = p.returncode
|
||||
except OSError:
|
||||
ui.write(_("Failed calling arc. (is it in your PATH?)\n"))
|
||||
ui.write(_("Failed calling pastry. (is it in your PATH?)\n"))
|
||||
ret = 1
|
||||
|
||||
if ret:
|
||||
|
Loading…
Reference in New Issue
Block a user