Commit b63fa759 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

Fix Python 3 support

parent 38cddd0c3e2f
......@@ -151,7 +151,7 @@ def _ghremote(git_repo, git_remote_url, git_branch, hg_bookmark):
@command(
"ghclone", [], _("git_fork_path git_upstream_path working_directory"), norepo=True
b"ghclone", [], _("git_fork_path git_upstream_path working_directory"), norepo=True
)
def ghclone(ui, git_fork_url, git_upstream_url, working_directory, **opts):
"""Prepare working directory to work with github"""
......@@ -163,7 +163,7 @@ def ghclone(ui, git_fork_url, git_upstream_url, working_directory, **opts):
print(ex)
@command("ghpull", [], _(""))
@command(b"ghpull", [], _(""))
def ghpull(ui, repo, **opts):
os.chdir(repo.root)
"""Prepare working directory to work with github"""
......@@ -174,7 +174,7 @@ def ghpull(ui, repo, **opts):
pass
@command("ghpush", [], _("bookmark"))
@command(b"ghpush", [], _("bookmark"))
def ghpush(ui, repo, bookmark, **opts):
"""Prepare working directory to work with github"""
os.chdir(repo.root)
......@@ -187,7 +187,7 @@ def ghpush(ui, repo, bookmark, **opts):
print(ex)
@command("ghremote", [], _("git_remote_path git_branch hg_bookmark"))
@command(b"ghremote", [], _("git_remote_path git_branch hg_bookmark"))
def ghremote(ui, repo, git_remote_url, git_branch, hg_bookmark, **opts):
"""Pull remote branch from alternate Git repository"""
os.chdir(repo.root)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment