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

Mercurial update branch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Windows 7 SP1, Jenkins version 1.646, Mercurial Plugin version 1.54, Chrome browser 43.0
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            IIRC pull -b did not work in some cases, but I would have to do some research to remember why.

            Bookmark support is a duplicate.

            Show
            jglick Jesse Glick added a comment - IIRC pull -b did not work in some cases, but I would have to do some research to remember why. Bookmark support is a duplicate.

              People

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

                Dates

                Created:
                Updated: