Maven SCM
  1. Maven SCM
  2. SCM-491

release:perform with Mercurial performs a full hg clone from the remote repository

    Details

      Description

      Hello.

      When executing a release:perform, Maven forces hg to perform a clone of the remote repository in the target/checkout directory:

      [INFO] EXECUTING: /bin/sh -c cd /home/hudson/Builds/jrawio~TEST/target && hg clone -r 1.5.4 https://@kenai.com/hg/jrawio~src /home/hudson/Builds/jrawio~TEST/target/checkout

      Hg repos can be huge (even gigabytes) and thus operation causes a waste of bandwidth (and of time). It seems that the most obvious thing to do is to clone from the local copy in the main directory (e.g. hg clone -r 1.5.4 ..) and if you need to do a laster push you can explicitly specify the URL of the remote repository to the hg push command.

        Activity

        Fabrizio Giudici created issue -
        Hide
        Mark Struberg added a comment -

        Fabrizio, there is a similar issue with other distributed SCMs. You may take a look at e.g. SCM-444 where we discussed this for git.

        For solving this cleanly, we need to change the maven-scm-api, maven-release-manager, maven-release-plugin, all maven-scm-providers for DSCMs (git, bazaar, hg)
        I think we should try to address this in the next major maven-scm update. But since this is imho a pretty heavy task I don't expect this to happen quickly.

        Show
        Mark Struberg added a comment - Fabrizio, there is a similar issue with other distributed SCMs. You may take a look at e.g. SCM-444 where we discussed this for git. For solving this cleanly, we need to change the maven-scm-api, maven-release-manager, maven-release-plugin, all maven-scm-providers for DSCMs (git, bazaar, hg) I think we should try to address this in the next major maven-scm update. But since this is imho a pretty heavy task I don't expect this to happen quickly.
        Show
        Fabrizio Giudici added a comment - I've found a workaround: http://weblogs.java.net/blog/fabriziogiudici/archive/2009/10/29/fixing-two-problems-maven-mercurial-hudson
        Mark Struberg made changes -
        Field Original Value New Value
        Assignee Mark Struberg [ struberg ]
        Hide
        Mark Struberg added a comment -

        this should be fixed by MRELEASE-501

        Please use the localCheckout option to use a file:// clone from the local repo instead of going over the network:

        mvn release:perform -DlocalCheckout=true

        Show
        Mark Struberg added a comment - this should be fixed by MRELEASE-501 Please use the localCheckout option to use a file:// clone from the local repo instead of going over the network: mvn release:perform -DlocalCheckout=true
        Mark Struberg made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.3 [ 14523 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Mark Thomas made changes -
        Workflow jira [ 12725497 ] Default workflow, editable Closed status [ 12757844 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12962815 ] Default workflow, editable Closed status [ 12999126 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        97d 11h 2m 1 Mark Struberg 23/Nov/09 17:03

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Fabrizio Giudici
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development