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

Mercurial update branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • mercurial-plugin
    • None
    • Windows 7 SP1, Jenkins version 1.646, Mercurial Plugin version 1.54, Chrome browser 43.0

      Setting up Jenkins job with source code management set to Mercurial. The revision type is 'Branch' and the revision to 'master'.

      When building this job the mercurial plugin first executes the command:
      hg pull --rev master

      The plugin then executes the command;
      hg update --clean --rev master

      In this particular case the update command find an bookmark called master which is three years old and updates to it. It did not find the Branch called master which is updated daily. It appears using the following command works better for me,
      hg update --clean --rev branch("master")
      This appears to be more precise command.

      Also, why does the first command use --rev <name> when I have specified revision type to branch? It makes more sense to use;
      hg pull -b master

      Appreciate any feedback.

            jglick Jesse Glick
            redlars Lars Lars
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: