Class HgConsumer

java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.hg.command.HgConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
Direct Known Subclasses:
HgAddConsumer, HgBlameConsumer, HgChangeLogConsumer, HgCheckOutConsumer, HgDiffConsumer, HgInfoConsumer, HgListConsumer, HgOutgoingConsumer, HgRemoveConsumer, HgTagConsumer

public class HgConsumer extends AbstractConsumer
Base consumer to do common parsing for all hg commands.

More specific: log line each line if debug is enabled, get file status and detect warnings from hg

Author:
thurner rupert
  • Constructor Details

  • Method Details

    • doConsume

      public void doConsume(ScmFileStatus status, String trimmedLine)
    • consumeLine

      public void consumeLine(String line)
    • getStdErr

      public String getStdErr()
      Warnings and errors is usually printed out in Std.Err, thus for derived consumers operating on Std.Out this would typically return an empty string.
      Returns:
      Return the last lines interpreted as an warning or an error