D7189: git: use bytes in command name, not unicode

maho (Maho) phabricator at mercurial-scm.org
Fri Nov 1 16:39:22 UTC 2019


maho created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/git/__init__.py

CHANGE DETAILS

diff --git a/hgext/git/__init__.py b/hgext/git/__init__.py
--- a/hgext/git/__init__.py
+++ b/hgext/git/__init__.py
@@ -225,5 +225,5 @@
     extensions.wrapfunction(localrepo, 'makestore', _makestore)
     extensions.wrapfunction(localrepo, 'makefilestorage', _makefilestorage)
     # Inject --git flag for `hg init`
-    entry = extensions.wrapcommand(commands.table, 'init', init)
+    entry = extensions.wrapcommand(commands.table, b'init', init)
     entry[1].extend([('', 'git', None, 'setup up a git repository instead of hg')])



To: maho, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list