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
132fb69a
Commit
132fb69a
authored
13 years ago
by
Adrian Sampson
Browse files
Options
Downloads
Patches
Plain Diff
use new names for tags cache attributes if they're available
parent
50c8d033
No related branches found
Branches containing commit
Tags
0.8.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hggit/hgrepo.py
+9
-7
9 additions, 7 deletions
hggit/hgrepo.py
with
9 additions
and
7 deletions
hggit/hgrepo.py
+
9
−
7
View file @
132fb69a
...
...
@@ -60,10 +60,6 @@
return
{}
def
tags
(
self
):
if
not
hasattr
(
self
,
'
tagscache
'
):
# mercurial 1.4
tmp
=
super
(
hgrepo
,
self
).
tags
()
tmp
.
update
(
self
.
gitrefs
())
return
tmp
if
self
.
tagscache
:
if
hasattr
(
self
,
'
tagscache
'
)
and
self
.
tagscache
:
# Mercurial 1.4 and earlier.
return
self
.
tagscache
...
...
@@ -69,4 +65,7 @@
return
self
.
tagscache
elif
hasattr
(
self
,
'
_tags
'
)
and
self
.
_tags
:
# Mercurial 1.5 and later.
return
self
.
_tags
git
=
GitHandler
(
self
,
self
.
ui
)
tagscache
=
super
(
hgrepo
,
self
).
tags
()
...
...
@@ -70,8 +69,9 @@
git
=
GitHandler
(
self
,
self
.
ui
)
tagscache
=
super
(
hgrepo
,
self
).
tags
()
tagscache
.
update
(
self
.
gitrefs
())
for
tag
,
rev
in
git
.
tags
.
iteritems
():
if
tag
in
tagscache
:
continue
tagscache
[
tag
]
=
bin
(
rev
)
...
...
@@ -73,9 +73,11 @@
for
tag
,
rev
in
git
.
tags
.
iteritems
():
if
tag
in
tagscache
:
continue
tagscache
[
tag
]
=
bin
(
rev
)
self
.
_tagstypecache
[
tag
]
=
'
git
'
if
hasattr
(
self
,
'
_tagstypecache
'
):
# Only present in Mercurial 1.3 and earlier.
self
.
_tagstypecache
[
tag
]
=
'
git
'
return
tagscache
...
...
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