Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
hg-git
Commits
f0628f52
Commit
f0628f52
authored
15 years ago
by
Sverre Rabbelier
Browse files
Options
Downloads
Patches
Plain Diff
add gexport command
parent
0cec7b1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
__init__.py
+6
-0
6 additions, 0 deletions
__init__.py
git_handler.py
+6
-3
6 additions, 3 deletions
git_handler.py
with
12 additions
and
3 deletions
__init__.py
+
6
−
0
View file @
f0628f52
...
...
@@ -52,6 +52,10 @@
git
=
GitHandler
(
repo
,
ui
)
git
.
push
(
remote_name
)
def
gexport
(
ui
,
repo
):
git
=
GitHandler
(
repo
,
ui
)
git
.
export
()
def
gremote
(
ui
,
repo
,
*
args
):
git
=
GitHandler
(
repo
,
ui
)
...
...
@@ -91,6 +95,8 @@
),
"
gpush
"
:
(
gpush
,
[],
_
(
'
hg gpush remote
'
)),
"
gexport
"
:
(
gexport
,
[],
_
(
'
hg gexport
'
)),
"
gfetch
"
:
(
gfetch
,
[],
#[('m', 'merge', None, _('merge automatically'))],
...
...
This diff is collapsed.
Click to expand it.
git_handler.py
+
6
−
3
View file @
f0628f52
...
...
@@ -115,5 +115,10 @@
self
.
import_git_objects
(
remote_name
)
self
.
save_map
()
def
export
(
self
):
self
.
export_git_objects
()
self
.
update_references
()
self
.
save_map
()
def
push
(
self
,
remote_name
):
self
.
ui
.
status
(
_
(
"
pushing to : %s
\n
"
)
%
remote_name
)
...
...
@@ -118,5 +123,4 @@
def
push
(
self
,
remote_name
):
self
.
ui
.
status
(
_
(
"
pushing to : %s
\n
"
)
%
remote_name
)
self
.
export_git_objects
()
self
.
update_references
()
self
.
export
()
self
.
upload_pack
(
remote_name
)
...
...
@@ -122,5 +126,4 @@
self
.
upload_pack
(
remote_name
)
self
.
save_map
()
def
remote_add
(
self
,
remote_name
,
git_url
):
self
.
_config
[
'
remote.
'
+
remote_name
+
'
.url
'
]
=
git_url
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment