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
Admin message
This instance will be upgraded to Heptapod 17.9.0 final on 2025-04-04 between 14:00 and 15:00 UTC+2
Show more breadcrumbs
mercurial
hg-git
Commits
88e9e9e1
Commit
88e9e9e1
authored
15 years ago
by
Scott Chacon
Browse files
Options
Downloads
Patches
Plain Diff
will now set the current tip() as your git 'master' branch for packfile upload
parent
41f4e0a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
git_handler.py
+5
-4
5 additions, 4 deletions
git_handler.py
with
5 additions
and
4 deletions
git_handler.py
+
5
−
4
View file @
88e9e9e1
...
...
@@ -126,9 +126,9 @@
return
self
.
_config
[
'
remote.
'
+
remote_name
+
'
.url
'
]
def
update_references
(
self
):
# if bookmarks exist, add them as git branches
# if non of the bookmarks are tip(), add the tip as your master branch
pass
#
TODO :
if bookmarks exist, add them as git branches
c
=
self
.
map_git_get
(
hex
(
self
.
repo
.
changelog
.
tip
()))
self
.
git
.
set_ref
(
'
refs/heads/master
'
,
c
)
def
export_git_objects
(
self
):
print
"
exporting git objects
"
...
...
@@ -158,7 +158,6 @@
self
.
export_hg_commit
(
self
,
p_rev
)
ctx
=
self
.
repo
.
changectx
(
rev
)
print
ctx
tree_sha
=
self
.
write_git_tree
(
ctx
)
# TODO : something with tags?
...
...
@@ -162,6 +161,8 @@
tree_sha
=
self
.
write_git_tree
(
ctx
)
# TODO : something with tags?
# TODO : explicit file renaming, copying?
commit
=
{}
commit
[
'
tree
'
]
=
tree_sha
(
time
,
timezone
)
=
ctx
.
date
()
...
...
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