Always update notes on push

... at least in the sane capability_push mode.
Remove documentation on obsolete push-updates-notes setting.
This commit is contained in:
Mark Nauwelaerts
2016-08-13 11:14:07 +02:00
parent 5acd0028b4
commit 6cff0327aa
3 changed files with 3 additions and 18 deletions

View File

@@ -205,14 +205,6 @@ If somehow your workflow relies on having these in the old place:
% git config --global remote-hg.show-private-refs true
--------------------------------------
The `refs/notes/hg` mentioned above that provide info on corresponding hg
changeset are so far only updated upon a fetch. If you prefer to have
these notes as soon as possible, then a push can be made to do some extra
work on this:
--------------------------------------
% git config --global remote-hg.push-updates-notes true
--------------------------------------
=== Helper Commands ===
Beyond that, a 'git-hg-helper' script has been added that can aid in the git-hg

View File

@@ -84,13 +84,6 @@ maintained not so visibly. If that, however, would be preferred:
% git config --global remote-hg.show-private-refs true
--------------------------------------
By default, the refs/notes/hg are not updated upon push, though such can be
enabled:
--------------------------------------
% git config --global remote-hg.push-updates-notes true
--------------------------------------
NOTES
-----

View File

@@ -1573,9 +1573,9 @@ def do_push(parser):
die('unhandled push command: %s' % (line))
print
# at this stage, all external processes are done, marks files written
# so we can use those do update notes if so desired
if get_config_bool('remote-hg.push-updates-notes') and revs:
update_notes(revs, "Update notes on push")
# so we can use those to update notes
# do so unconditionally because we can and should ....
update_notes(revs, "Update notes on push")
def do_option(parser):
global dry_run, force_push