Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
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
Environments
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
mercurial-devel
Commits
f21e0d91
Commit
f21e0d91
authored
8 years ago
by
Martijn Pieters
Browse files
Options
Downloads
Patches
Plain Diff
share: move magic string to a constant
parent
d2c6f3a9
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hgext/share.py
+1
-1
1 addition, 1 deletion
hgext/share.py
mercurial/hg.py
+4
-1
4 additions, 1 deletion
mercurial/hg.py
with
5 additions
and
2 deletions
hgext/share.py
+
1
−
1
View file @
f21e0d91
...
...
@@ -135,7 +135,7 @@
if
inst
.
errno
!=
errno
.
ENOENT
:
raise
return
False
return
'
bookmarks
'
in
shared
return
hg
.
shared
bookmarks
in
shared
def
_getsrcrepo
(
repo
):
"""
...
...
This diff is collapsed.
Click to expand it.
mercurial/hg.py
+
4
−
1
View file @
f21e0d91
...
...
@@ -44,6 +44,9 @@
release
=
lock
.
release
# shared features
sharedbookmarks
=
'
bookmarks
'
def
_local
(
path
):
path
=
util
.
expandpath
(
util
.
urllocalpath
(
path
))
return
(
os
.
path
.
isfile
(
path
)
and
bundlerepo
or
localrepo
)
...
...
@@ -258,7 +261,7 @@
if
bookmarks
:
fp
=
destrepo
.
vfs
(
'
shared
'
,
'
w
'
)
fp
.
write
(
'
bookmarks
\n
'
)
fp
.
write
(
shared
bookmarks
+
'
\n
'
)
fp
.
close
()
def
_postshareupdate
(
repo
,
update
,
checkout
=
None
):
...
...
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