changeset 18800:a624210e4866

test-completion: test completion of tags
author Bryan O'Sullivan <bryano@fb.com>
date Thu, 21 Mar 2013 22:42:51 -0700
parents 0ed95fe674a8
children c84cc0f3364a
files tests/test-completion.t
diffstat 1 files changed, 20 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-completion.t	Thu Mar 21 22:29:31 2013 -0700
+++ b/tests/test-completion.t	Thu Mar 21 22:42:51 2013 -0700
@@ -287,14 +287,15 @@
   $ cd a
   $ echo fee > fee
   $ hg ci -q -Amfee
+  $ hg tag fee
   $ mkdir fie
   $ echo dead > fie/dead
   $ echo live > fie/live
   $ hg bookmark fo
-  $ hg branch fie
+  $ hg branch -q fie
   $ hg ci -q -Amfie
   $ echo fo > fo
-  $ hg branch default
+  $ hg branch -qf default
   $ hg ci -q -Amfo
   $ echo Fum > Fum
   $ hg ci -q -AmFum
@@ -303,16 +304,33 @@
 Test debugpathcomplete
 
   $ hg debugpathcomplete f
+  fee
+  fie/
+  fo
   $ hg debugpathcomplete -f f
+  fee
+  fie/dead
+  fie/live
+  fo
 
   $ hg rm Fum
   $ hg debugpathcomplete -r F
+  Fum
 
 If one directory and no files match, give an ambiguous answer
 
   $ hg debugpathcomplete fi
+  fie/
+  fie/.
 
 Test debuglabelcomplete
 
   $ hg debuglabelcomplete
+  Fum
+  default
+  fee
+  fo
+  tip
   $ hg debuglabelcomplete f
+  fee
+  fo