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

Wrong option "--branch" used by change polling

    Details

    • Similar Issues:

      Description

      With Jenkins 1.442, Mercurial Plugin 1.38, the change polling issues a "hg log" command using "--branch foo", which mercurial doesn't know about. Should be "-b" or "--only-branch".

        Attachments

          Issue Links

            Activity

            cneuroth Christoph Neuroth created issue -
            cneuroth Christoph Neuroth made changes -
            Field Original Value New Value
            Description With Jenkins 1.442, Mercurial Plugin 1.38, the change polling issues a "hg log" command using "--branch foo", which mercurial doesn't know about. Should be "-b" or "--only-branch". With Jenkins 1.442, Mercurial Plugin 1.38, the change polling issues a "hg log" command using "\-\-branch foo", which mercurial doesn't know about. Should be "-b" or "--only-branch".
            cneuroth Christoph Neuroth made changes -
            Description With Jenkins 1.442, Mercurial Plugin 1.38, the change polling issues a "hg log" command using "\-\-branch foo", which mercurial doesn't know about. Should be "-b" or "--only-branch". With Jenkins 1.442, Mercurial Plugin 1.38, the change polling issues a "hg log" command using "\-\-branch foo", which mercurial doesn't know about. Should be "\-b" or "\-\-only-branch".
            Hide
            cneuroth Christoph Neuroth added a comment -

            Seems this was changed from only-branch to branch in a recent mercurial release. -b works on both though, I'll attach a patch for this as soon as I tested it.

            Show
            cneuroth Christoph Neuroth added a comment - Seems this was changed from only-branch to branch in a recent mercurial release. -b works on both though, I'll attach a patch for this as soon as I tested it.
            cneuroth Christoph Neuroth made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Christoph Neuroth [ cneuroth ]
            Show
            cneuroth Christoph Neuroth added a comment - Fix available: https://github.com/jenkinsci/mercurial-plugin/pull/12
            cneuroth Christoph Neuroth made changes -
            Assignee Christoph Neuroth [ cneuroth ] davidmc24 [ davidmc24 ]
            Hide
            legalize Richard added a comment -

            Any idea on when an update will be available? This breaks all polling for Mercurial repositories

            Show
            legalize Richard added a comment - Any idea on when an update will be available? This breaks all polling for Mercurial repositories
            Hide
            jglick Jesse Glick added a comment -

            Fixed as a side effect of fix of JENKINS-7594.

            Show
            jglick Jesse Glick added a comment - Fixed as a side effect of fix of JENKINS-7594 .
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-7594 [ JENKINS-7594 ]
            Hide
            emidio Emidio Stani added a comment -

            Hi all,

            I recently experienced this problem with Jenkins 1.450 and Mercurial Plugin 1.38, see log below:

            Started on Feb 9, 2012 5:24:03 PM
            [workspace] $ hg pull --rev default
            pulling from http://jenkinsuforge:***@hg.u-forge.net/hg/drupal/
            searching for changes
            no changes found
            [workspace] $ hg log --style /usr/app/jenkins/jobs/Drupal/workspace/tmp7553423341421974400style --branch default --no-merges --prune af4057c4b7d19d8ebef92de805e28db93fcb0a2c
            hg log: option --branch not recognized
            hg log [OPTION]... [FILE]

            Show
            emidio Emidio Stani added a comment - Hi all, I recently experienced this problem with Jenkins 1.450 and Mercurial Plugin 1.38, see log below: Started on Feb 9, 2012 5:24:03 PM [workspace] $ hg pull --rev default pulling from http://jenkinsuforge:***@hg.u-forge.net/hg/drupal/ searching for changes no changes found [workspace] $ hg log --style /usr/app/jenkins/jobs/Drupal/workspace/tmp7553423341421974400style --branch default --no-merges --prune af4057c4b7d19d8ebef92de805e28db93fcb0a2c hg log: option --branch not recognized hg log [OPTION] ... [FILE]
            emidio Emidio Stani made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Hide
            cass_costello Cass Costello added a comment - - edited

            Still exists with Jenkins ver. 1.454 and HG plugin 1.38
            Started on Mar 6, 2012 2:43:41 PM
            [workspace] $ /usr/bin/hg pull --rev default
            pulling from http://guest:***@f1tst-linbld100/cgi-bin/hgwebdir.cgi/RCALParent/
            searching for changes
            no changes found
            [workspace] $ /usr/bin/hg log --style /root/.jenkins/jobs/RCALParent/workspace/tmp1653283168161523774style --branch default --no-merges --prune d192aa5a7ebca288cc92070b3e4e7f54578d99fb
            hg log: option --branch not recognized
            hg log [OPTION]... [FILE]

            What's the best way for me to have a look at the code and request a merge?

            Show
            cass_costello Cass Costello added a comment - - edited Still exists with Jenkins ver. 1.454 and HG plugin 1.38 Started on Mar 6, 2012 2:43:41 PM [workspace] $ /usr/bin/hg pull --rev default pulling from http://guest:***@f1tst-linbld100/cgi-bin/hgwebdir.cgi/RCALParent/ searching for changes no changes found [workspace] $ /usr/bin/hg log --style /root/.jenkins/jobs/RCALParent/workspace/tmp1653283168161523774style --branch default --no-merges --prune d192aa5a7ebca288cc92070b3e4e7f54578d99fb hg log: option --branch not recognized hg log [OPTION] ... [FILE] What's the best way for me to have a look at the code and request a merge?
            Hide
            cass_costello Cass Costello added a comment -

            FYI - Pulled snapshot of hg plugin (1.39-SNAPSHOT), installed and...problem fixed.

            Show
            cass_costello Cass Costello added a comment - FYI - Pulled snapshot of hg plugin (1.39-SNAPSHOT), installed and...problem fixed.
            Hide
            emidio Emidio Stani added a comment -

            I just want to confirm what Cass Costello said, pulling the snapshot from the repository and installing the hpi works.

            Show
            emidio Emidio Stani added a comment - I just want to confirm what Cass Costello said, pulling the snapshot from the repository and installing the hpi works.
            Hide
            emidio Emidio Stani added a comment -

            Version 1.39 Snapshot solved the issue

            Show
            emidio Emidio Stani added a comment - Version 1.39 Snapshot solved the issue
            emidio Emidio Stani made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            sam42fr Samuel Gaiffe added a comment - - edited

            Thanx for the tip

            Show
            sam42fr Samuel Gaiffe added a comment - - edited Thanx for the tip
            Hide
            sam42fr Samuel Gaiffe added a comment -

            Sorry but where can I find those snapshots ? I tried to build from git repo but I have a problem with the parent pom

            Show
            sam42fr Samuel Gaiffe added a comment - Sorry but where can I find those snapshots ? I tried to build from git repo but I have a problem with the parent pom
            Hide
            rjohnst Rob Johnston added a comment -

            If you can't build it locally (though it should, I was jsut able to do it) you could grab the hpi from Jenkins on Jenkins: http://ci.jenkins-ci.org/view/Plugins/job/plugins_mercurial/

            Show
            rjohnst Rob Johnston added a comment - If you can't build it locally (though it should, I was jsut able to do it) you could grab the hpi from Jenkins on Jenkins: http://ci.jenkins-ci.org/view/Plugins/job/plugins_mercurial/
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 142320 ] JNJira + In-Review [ 190076 ]

              People

              • Assignee:
                davidmc24 davidmc24
                Reporter:
                cneuroth Christoph Neuroth
              • Votes:
                4 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: