mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-07-21 00:30:55 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
-----
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user