tg-export: understand more ranges and purge expr
commit9b1f099c6875a3d2da783f8d3abfebed64c0a7e1
authorKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 08:02:37 +0000 (13 01:02 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 08:02:37 +0000 (13 01:02 -0700)
treee495bba304f6bc6126eaaf7aeb6334cd5e4b0cc9
parent19bc93f35185f51c76a54763461f591f26979df3
tg-export: understand more ranges and purge expr

Understand <rev>.. to mean <rev>..HEAD and similarly
..<rev> to mean HEAD..<rev> just like Git does.

Also add support for the <rev>^! notation to mean a
single commit although due to limitations of the underlying
commands being used a complaint results if <rev> does not
have exactly one parent.  Nevertheless it's a convenient
shortcut.

Also take this opportunity to purge the last uses of the
`expr` utility out of the codebase and make it expr free!

Add some tg import tests as well that target these changes.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
README
t/t8100-import.sh [new file with mode: 0755]
tg-import.sh