Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13329

Mercurial debug causes clone repository each time Mrather than update

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Linux, Jenkis 1.458, mercurial 1.7
    • Similar Issues:

      Description

      JENKINS-4672 gives possibility to setup Marcurial debug flag.
      When I switch it on, the all mercurial call is done with option "--debug".

      The first command, during the build, checks if configuration of repository wasn't changed.
      This check is done by comparision result of commad "hg showconfig paths.default" with jenkins configuration.

      But there is a different output if the debug option is ON.
      Without debug option :
      $ hg showconfig paths.default
      https://hg/hg/zpis

      With debug option :
      hg --debug showconfig paths.default
      read config from: /etc/mercurial/hgrc
      read config from: /data/hudson/.hgrc
      none: https://hg/hg/zpis

      So with the debug option, the mercurial configuration is always different as jenkins configuration.

      Result is :
      -----------
      Building in workspace /data/hudson/jobs/vlk-pokus/workspace
      [workspace] $ hg --debug showconfig paths.default
      read config from: /etc/mercurial/hgrc
      read config from: /data/hudson/.hgrc
      none: https://hg/hg/zpis
      which looks different than https://hg/hg/zpis
      so falling back to fresh clone rather than incremental update

      Workaround : Switch off the degug option.

        Attachments

          Issue Links

            Activity

            vlk Vladimir Kralik created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            elifarley Elifarley made changes -
            Link This issue is related to JENKINS-17258 [ JENKINS-17258 ]
            elifarley Elifarley made changes -
            Link This issue is related to JENKINS-17258 [ JENKINS-17258 ]
            elifarley Elifarley made changes -
            Link This issue is duplicated by JENKINS-17258 [ JENKINS-17258 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 143793 ] JNJira + In-Review [ 190742 ]

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                vlk Vladimir Kralik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: