D2105: infinitepush: drop hack related to --to, --create flags of remotenames-ext

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri Mar 30 19:52:47 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG14acab54e08b: infinitepush: drop hack related to --to, --create flags of remotenames-ext (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2105?vs=5366&id=7420

REVISION DETAIL
  https://phab.mercurial-scm.org/D2105

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS

diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -771,16 +771,6 @@
     with ui.configoverride(overrides, 'infinitepush'):
         scratchpush = opts.get('bundle_store')
         if _scratchbranchmatcher(bookmark):
-            # Hack to fix interaction with remotenames. Remotenames push
-            # '--to' bookmark to the server but we don't want to push scratch
-            # bookmark to the server. Let's delete '--to' and '--create' and
-            # also set allow_anon to True (because if --to is not set
-            # remotenames will think that we are pushing anonymoush head)
-            if 'to' in opts:
-                del opts['to']
-            if 'create' in opts:
-                del opts['create']
-            opts['allow_anon'] = True
             scratchpush = True
             # bundle2 can be sent back after push (for example, bundle2
             # containing `pushkey` part to update bookmarks)



To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list