Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
hggitforge
Commits
c67a385fadbf
Commit
b64845e6
authored
Oct 22, 2020
by
Elouan Martinet
Browse files
Rename project to hggitforge
parent
5fa2c28dc4e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
hggit
hub
/__init__.py
→
hggit
forge
/__init__.py
View file @
c67a385f
"""hggit
hub
"""hggit
forge
Add some usefull command to work with
github
Add some usefull command to work with
forge
"""
import
os
import
os.path
as
osp
...
...
@@ -154,7 +154,7 @@ def _ghremote(git_repo, git_remote_url, git_branch, hg_bookmark):
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
"""
"""Prepare working directory to work with
forge
"""
try
:
_ghclone
(
git_fork_url
,
git_upstream_url
,
working_directory
)
except
CalledProcessError
:
...
...
@@ -165,7 +165,7 @@ def ghclone(ui, git_fork_url, git_upstream_url, working_directory, **opts):
@
command
(
b
"ghpull"
,
[],
_
(
""
))
def
ghpull
(
ui
,
repo
,
**
opts
):
"""Prepare working directory to work with
github
"""
"""Prepare working directory to work with
forge
"""
os
.
chdir
(
repo
.
root
)
git_repo
=
ui
.
config
(
"gitrepo"
,
"gitrepo"
)
try
:
...
...
@@ -176,7 +176,7 @@ def ghpull(ui, repo, **opts):
@
command
(
b
"ghpush"
,
[],
_
(
"bookmark"
))
def
ghpush
(
ui
,
repo
,
bookmark
,
**
opts
):
"""Prepare working directory to work with
github
"""
"""Prepare working directory to work with
forge
"""
os
.
chdir
(
repo
.
root
)
git_repo
=
ui
.
config
(
"gitrepo"
,
"gitrepo"
)
try
:
...
...
setup.py
View file @
c67a385f
#!/usr/bin/env python
"""hggit
hub
setup module"""
"""hggit
forge
setup module"""
from
setuptools
import
find_packages
,
setup
setup
(
name
=
"hggit
hub
"
,
name
=
"hggit
forge
"
,
version
=
"0.1.0"
,
author
=
"LOGILAB S.A. (Paris, FRANCE)"
,
author_email
=
"contact@logilab.fr"
,
...
...
Write
Preview
Markdown
is supported
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