Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-pull-mirror-test2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
heptapod
Testing Projects
hg-pull-mirror-test2
Commits
972d14a5a227
Commit
972d14a5a227
authored
18 years ago
by
Benoit Boissinot
Browse files
Options
Downloads
Patches
Plain Diff
don't use localrepo.__init__ to create the dest repo with clone+hardlinks
parent
2aef481ac73c
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
mercurial/hg.py
+10
-6
10 additions, 6 deletions
mercurial/hg.py
with
10 additions
and
6 deletions
mercurial/hg.py
+
10
−
6
View file @
972d14a5
...
...
@@ -127,6 +127,4 @@
if
self
.
dir_
:
self
.
rmtree
(
self
.
dir_
,
True
)
dest_repo
=
repository
(
ui
,
dest
,
create
=
True
)
dir_cleanup
=
None
...
...
@@ -132,6 +130,6 @@
dir_cleanup
=
None
if
dest_repo
.
local
():
dir_cleanup
=
DirCleanup
(
os
.
path
.
realpath
(
dest_repo
.
root
)
)
if
is
local
(
dest
):
dir_cleanup
=
DirCleanup
(
dest
)
abspath
=
source
copy
=
False
...
...
@@ -135,7 +133,7 @@
abspath
=
source
copy
=
False
if
src_repo
.
local
()
and
dest_repo
.
local
():
if
src_repo
.
local
()
and
is
local
(
dest
):
abspath
=
os
.
path
.
abspath
(
source
)
copy
=
not
pull
and
not
rev
...
...
@@ -153,7 +151,11 @@
if
copy
:
# we lock here to avoid premature writing to the target
src_store
=
os
.
path
.
realpath
(
src_repo
.
spath
)
dest_store
=
os
.
path
.
realpath
(
dest_repo
.
spath
)
dest_path
=
os
.
path
.
realpath
(
os
.
path
.
join
(
dest
,
"
.hg
"
))
dest_store
=
dest_path
if
not
os
.
path
.
exists
(
dest
):
os
.
mkdir
(
dest
)
os
.
mkdir
(
dest_path
)
dest_lock
=
lock
.
lock
(
os
.
path
.
join
(
dest_store
,
"
lock
"
))
files
=
(
"
data
"
,
...
...
@@ -173,6 +175,8 @@
dest_repo
=
repository
(
ui
,
dest
)
else
:
dest_repo
=
repository
(
ui
,
dest
,
create
=
True
)
revs
=
None
if
rev
:
if
'
lookup
'
not
in
src_repo
.
capabilities
:
...
...
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