Skip to content
Snippets Groups Projects
Commit 970fb3c5 authored by Georges Racinet's avatar Georges Racinet
Browse files

git_sync: silencing Git push messages

We've always had the 'pushing to' message in Heptapod, but now that
we're pushing directly on the FS without the entremise of SSH, it
has become way too precise.

At best it's a distraction, some would even consider it a disclosure
of important information.

At some point, we might in Heptapod use a completely new command
instead of the generic push, but for the time being, we are reduced
to this really hacky patching.

This effectively silences everything except postclose hooks that
`hg-git` will define – but it'll take care of them itself.
parent 2b0018b2
No related branches found
No related tags found
No related merge requests found
......@@ -31,4 +31,6 @@
repo.ui.note("Heptapod mirror starting, target is %r" % dest)
push = cmdutil.findcmd('push', commands.table)[1][0]
quiet = ui.quiet
ui.quiet = True
push(ui, repo, dest=dest, force=True)
......@@ -34,4 +36,5 @@
push(ui, repo, dest=dest, force=True)
ui.quiet = quiet
# command.push converts pushoperation.cgresult into a boolean, with True
# meaning a problem occurred, and False being the normal condition.
# It does it like so:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment