Mercurial update branch

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: mercurial-plugin
    • Environment:
      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.

            Assignee:
            Jesse Glick
            Reporter:
            Lars Lars
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: