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

Mercurial debug causes clone repository each time Mrather than update

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • mercurial-plugin
    • None
    • Linux, Jenkis 1.458, mercurial 1.7

      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.

          [JENKINS-13329] Mercurial debug causes clone repository each time Mrather than update

          Vladimir Kralik created issue -
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/plugins/mercurial/HgExe.java
          src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
          http://jenkins-ci.org/commit/mercurial-plugin/2dadbc8944937ad3a00fe5c82ef2584f71d26e31
          Log:
          [FIXED JENKINS-13329] --debug triggered fresh clones rather than updates.

          Compare: https://github.com/jenkinsci/mercurial-plugin/compare/fd76cf1...2dadbc8

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/plugins/mercurial/HgExe.java src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java http://jenkins-ci.org/commit/mercurial-plugin/2dadbc8944937ad3a00fe5c82ef2584f71d26e31 Log: [FIXED JENKINS-13329] --debug triggered fresh clones rather than updates. Compare: https://github.com/jenkinsci/mercurial-plugin/compare/fd76cf1...2dadbc8
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          dogfood added a comment -

          Integrated in plugins_mercurial #100
          [FIXED JENKINS-13329] --debug triggered fresh clones rather than updates. (Revision 2dadbc8944937ad3a00fe5c82ef2584f71d26e31)

          Result = SUCCESS
          Jesse Glick :
          Files :

          • src/main/java/hudson/plugins/mercurial/HgExe.java
          • src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java

          dogfood added a comment - Integrated in plugins_mercurial #100 [FIXED JENKINS-13329] --debug triggered fresh clones rather than updates. (Revision 2dadbc8944937ad3a00fe5c82ef2584f71d26e31) Result = SUCCESS Jesse Glick : Files : src/main/java/hudson/plugins/mercurial/HgExe.java src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
          Elifarley made changes -
          Link New: This issue is related to JENKINS-17258 [ JENKINS-17258 ]
          Elifarley made changes -
          Link Original: This issue is related to JENKINS-17258 [ JENKINS-17258 ]
          Elifarley made changes -
          Link New: This issue is duplicated by JENKINS-17258 [ JENKINS-17258 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 143793 ] New: JNJira + In-Review [ 190742 ]

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

              Created:
              Updated:
              Resolved: