[JIRA] (JENKINS-60748) clone options (--rev) not well suited for large repositories

2 views
Skip to first unread message

dirk.heinrichs@recommind.com (JIRA)

unread,
Jan 13, 2020, 7:32:02 AM1/13/20
to jenkinsc...@googlegroups.com
Dirk Heinrichs created an issue
 
Jenkins / Improvement JENKINS-60748
clone options (--rev) not well suited for large repositories
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: mercurial-plugin
Created: 2020-01-13 12:30
Environment: Windows/Linux
Priority: Major Major
Reporter: Dirk Heinrichs

When cloning a large repository (~2G, general_delta format), using --rev to only clone a specific branch can lead to vastly increased clone times as shown in the table below:

--rev default --uncompressed elapsed time
16:12,05
15:21,41
1:24,41
8:18,24

The times have been measured on a Linux host using the following command:

time hg clone <options> <URL>

As can be seen, adding -rev default increases the clone time dramatically, while adding -uncompressed yields the fastest result. On Windows, the situation is even worse (~3 - 4 times slower).

It would therefor be nice if one could enable or disable clone options on a per-job basis, or even have something similar to Git plugin's "Additional Behaviours" which allows to specify "Advanced clone behaviours" (and many more).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

dirk.heinrichs@recommind.com (JIRA)

unread,
Jan 13, 2020, 7:36:02 AM1/13/20
to jenkinsc...@googlegroups.com
Dirk Heinrichs updated an issue
Change By: Dirk Heinrichs
When cloning a large repository (~2G, general_delta format), using --rev to only clone a specific branch can lead to vastly increased clone times as shown in the table below:
||--rev default||--uncompressed||elapsed time||
|(/)|(/)|16:12,05|
|(/)|(-)|15:21,41|
|(-)|(/)|1:24,41|
|(-)|(-)|8:18,24|


The times have been measured on a Linux host using the following command:
{code:java}
time hg clone <options> <URL>{code}
As can be seen, adding
_ --rev default_ default increases the clone time dramatically, while adding _ -- uncompressed_ uncompressed yields the fastest result. On Windows, the situation is even worse (~3 - 4 times slower).


It would therefor be nice if one could enable or disable clone options on a per-job basis, or even have something similar to Git plugin's "Additional Behaviours" which allows to specify "Advanced clone behaviours" (and many more).
Reply all
Reply to author
Forward
0 new messages