Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
hggitforge
Commits
5f07659382ea
Commit
b63fa759
authored
Oct 14, 2020
by
Elouan Martinet
Browse files
Fix Python 3 support
parent
38cddd0c3e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
hggithub/__init__.py
View file @
5f076593
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment