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
af48a596
Commit
af48a596
authored
14 years ago
by
Augie Fackler
Browse files
Options
Downloads
Patches
Plain Diff
Add just enough code to handle changes to cset discovery.
parent
56f55c77
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
hggit/__init__.py
+14
-0
14 additions, 0 deletions
hggit/__init__.py
hggit/gitrepo.py
+2
-0
2 additions, 0 deletions
hggit/gitrepo.py
with
16 additions
and
0 deletions
hggit/__init__.py
+
14
−
0
View file @
af48a596
...
...
@@ -103,6 +103,20 @@
return
ret
extensions
.
wrapfunction
(
localrepo
.
localrepository
,
'
nodetags
'
,
sortednodetags
)
try
:
from
mercurial
import
discovery
def
findoutgoing
(
orig
,
local
,
remote
,
base
=
None
,
heads
=
None
,
force
=
False
):
if
isinstance
(
remote
,
gitrepo
.
gitrepo
):
git
=
GitHandler
(
local
,
local
.
ui
)
base
,
heads
=
git
.
get_refs
(
remote
.
path
)
r
=
orig
(
local
,
remote
,
base
=
base
,
heads
=
heads
,
force
=
force
)
return
[
x
[
0
]
for
x
in
r
]
return
orig
(
local
,
remote
,
base
=
base
,
heads
=
heads
,
force
=
force
)
extensions
.
wrapfunction
(
discovery
,
'
findoutgoing
'
,
findoutgoing
)
except
ImportError
:
pass
cmdtable
=
{
"
gimport
"
:
(
gimport
,
[],
_
(
'
hg gimport
'
)),
...
...
This diff is collapsed.
Click to expand it.
hggit/gitrepo.py
+
2
−
0
View file @
af48a596
...
...
@@ -19,6 +19,8 @@
def
local
(
self
):
if
not
self
.
path
:
raise
RepoError
def
heads
(
self
):
return
[]
instance
=
gitrepo
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