Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
heptapod
hg-git
Commits
9a89e9cf
Commit
9a89e9cf
authored
10 years ago
by
Siddharth Agarwal
Browse files
Options
Downloads
Patches
Plain Diff
git2hg.find_incoming: drop unnecessary if statement
parent
77416ddc
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
hggit/git2hg.py
+10
-11
10 additions, 11 deletions
hggit/git2hg.py
with
10 additions
and
11 deletions
hggit/git2hg.py
+
10
−
11
View file @
9a89e9cf
...
...
@@ -16,9 +16,11 @@
# get a list of all the head shas
seenheads
=
set
()
if
refs
:
for
sha
in
refs
.
itervalues
():
# refs contains all the refs in the server, not just the ones
# we are pulling
if
sha
in
git_object_store
:
for
sha
in
refs
.
itervalues
():
# refs contains all the refs in the server, not just the ones
# we are pulling
if
sha
in
git_object_store
:
obj
=
git_object_store
[
sha
]
while
isinstance
(
obj
,
Tag
):
obj_type
,
sha
=
obj
.
object
obj
=
git_object_store
[
sha
]
...
...
@@ -24,10 +26,7 @@
obj
=
git_object_store
[
sha
]
while
isinstance
(
obj
,
Tag
):
obj_type
,
sha
=
obj
.
object
obj
=
git_object_store
[
sha
]
if
isinstance
(
obj
,
Commit
)
and
sha
not
in
seenheads
:
seenheads
.
add
(
sha
)
todo
.
append
(
sha
)
if
isinstance
(
obj
,
Commit
)
and
sha
not
in
seenheads
:
seenheads
.
add
(
sha
)
todo
.
append
(
sha
)
# sort by commit date
def
commitdate
(
sha
):
...
...
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