Mercurial polling expects 'hg incoming' with 'show newest record first' option enabled

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

XMLWordPrintable

      The default behaviour for 'hg incoming' seems to be 'show newest record last', but parseIncomingOutput method of MercurialSCM class seems to work only with 'show newest record first' option enabled.

      Index: src/main/java/hudson/plugins/mercurial/MercurialSCM.java
      ===================================================================
      --- src/main/java/hudson/plugins/mercurial/MercurialSCM.java	(revision 29721)
      +++ src/main/java/hudson/plugins/mercurial/MercurialSCM.java	(working copy)
      @@ -264,6 +264,7 @@
                   ArgumentListBuilder cmd = findHgExe(node, listener, false);
                   cmd.add(forest ? "fincoming" : "incoming", "--style", tmpFile.getRemote());
                   cmd.add("--no-merges");
      +            cmd.add("--newest-first");
                   cmd.add("--rev", getBranch(env));
                   String cachedSource = cachedSource(node, launcher, listener, true);
                   if (cachedSource != null) {
      

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

              Created:
              Updated:
              Resolved:
              Archived: