Patchwork [3,of,3,crewed] tests: test debugpathcomplete and debuglabelcomplete

login
register
mail settings
Submitter Bryan O'Sullivan
Date March 22, 2013, 5:31 a.m.
Message ID <0ea3b8e8ce7aa76f160a.1363930291@australite.local>
Download mbox | patch
Permalink /patch/1165/
State Accepted
Commit 0ea3b8e8ce7aa76f160abd6664d6f35667bf7d4c
Headers show

Comments

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

Patch

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