Implement parse_revision_spec for mercurial.

Review Request #5162 — Created Dec. 24, 2013 and submitted

Information

RBTools
master

Reviewers

Implement parse_revision_spec for mercurial.

This change implements revision parsing for mercurial. This currently handles
all of the functionality that's currently supported, handling zero, one, or two
revisions. Parent diffs are currently not supported, for a couple different
reasons. Parent diffs with zero arguments are easy, but the --parent argument
is currently used as a way of specifying the remote branch. For one or two
arguments, we need to detect if the base revision is outgoing, but I haven't
entirely figured out how to do that yet.

Ran unit tests.

Description From Last Updated

The default is [], so you shouldn't need to pass anything in.

chipx86chipx86
chipx86
  1. One small thing.

  2. rbtools/clients/mercurial.py (Diff revision 1)
     
     
    Show all issues

    The default is [], so you shouldn't need to pass anything in.

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (f0baefa).