diff tests/test-log @ 10957:0d5f139b23c1

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'.
author Steve Losh <steve@stevelosh.com>
date Sun, 18 Apr 2010 18:18:19 -0400
parents 717c35d55fb3
children ca739acf1a98
line wrap: on
line diff
--- a/tests/test-log	Sat Apr 17 14:32:26 2010 +0200
+++ b/tests/test-log	Sun Apr 18 18:18:19 2010 -0400
@@ -135,4 +135,34 @@
 hg log -u "user1" -u "user2"
 hg log -u "user3"
 
+cd ..
+
+hg init branches
+cd branches
+
+echo a > a
+hg ci -A -m "commit on default"
+hg branch test
+echo b > b
+hg ci -A -m "commit on test"
+
+hg up default
+echo c > c
+hg ci -A -m "commit on default"
+hg up test
+echo c > c
+hg ci -A -m "commit on test"
+
+echo '% log -b default'
+hg log -b default
+
+echo '% log -b test'
+hg log -b test
+
+echo '% log -b dummy'
+hg log -b dummy
+
+echo '% log -b default -b test'
+hg log -b default -b test
+
 exit 0