[PATCH 3 of 3 crewed] tests: test debugpathcomplete and debuglabelcomplete

Bryan O'Sullivan bos at serpentine.com
Fri Mar 22 00:31:31 CDT 2013


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1363929961 25200
#      Thu Mar 21 22:26:01 2013 -0700
# Node ID 0ea3b8e8ce7aa76f160abd6664d6f35667bf7d4c
# Parent  c394a365483e1224c8627b94d9f1a40c279dcded
tests: test debugpathcomplete and debuglabelcomplete

diff --git a/tests/test-completion.t b/tests/test-completion.t
--- a/tests/test-completion.t
+++ b/tests/test-completion.t
@@ -282,3 +282,37 @@ Show all commands + options
   unbundle: update
   verify: 
   version: 
+
+  $ hg init a
+  $ cd a
+  $ echo fee > fee
+  $ hg ci -q -Amfee
+  $ mkdir fie
+  $ echo dead > fie/dead
+  $ echo live > fie/live
+  $ hg bookmark fo
+  $ hg branch fie
+  $ hg ci -q -Amfie
+  $ echo fo > fo
+  $ hg branch default
+  $ hg ci -q -Amfo
+  $ echo Fum > Fum
+  $ hg ci -q -AmFum
+  $ hg bookmark Fum
+
+Test debugpathcomplete
+
+  $ hg debugpathcomplete f
+  $ hg debugpathcomplete -f f
+
+  $ hg rm Fum
+  $ hg debugpathcomplete -r F
+
+If one directory and no files match, give an ambiguous answer
+
+  $ hg debugpathcomplete fi
+
+Test debuglabelcomplete
+
+  $ hg debuglabelcomplete
+  $ hg debuglabelcomplete f


More information about the Mercurial-devel mailing list