tests/test-diffdir
author Steve Losh <steve@stevelosh.com>
Sun, 18 Apr 2010 18:18:19 -0400
changeset 10957 0d5f139b23c1
parent 4180 f80cf8b7bbd9
permissions -rwxr-xr-x
commands: Add 'hg log --branch' and deprecate 'hg log --only-branch' Switching to --branch makes log consistent with push/pull and make more sense given the actual behavior of the option (you can specify -b multiple times to include multiple branches). This change also adds some tests for 'hg log -b'.

#!/bin/sh

hg init
touch a
hg add a
hg ci -m "a" -d "1000000 0"

echo 123 > b
hg add b
hg diff --nodates

hg diff --nodates -r tip

echo foo > a
hg diff --nodates

hg diff -r ""
hg diff -r tip -r ""

true