[PATCH 3 of 3 STABLE] schemes: add tests new for expand-scheme command
Jason R. Coombs
jaraco at jaraco.com
Fri Jan 29 14:13:57 CST 2016
# HG changeset patch
# User Jason R. Coombs <jaraco at jaraco.com>
# Date 1454097224 18000
# Fri Jan 29 14:53:44 2016 -0500
# Branch stable
# Node ID da65c246e10f57764ef3ae0323931c92cce8e357
# Parent 77639cbb262eb69d2a5fdfe100bdb17649c8d844
schemes: add tests new for expand-scheme command
diff --git a/tests/test-schemes.t b/tests/test-schemes.t
--- a/tests/test-schemes.t
+++ b/tests/test-schemes.t
@@ -52,6 +52,21 @@
no changes found
[1]
+check that expand-scheme outputs the canonical form
+
+ $ hg expand-scheme bb://user/repo
+ https://bitbucket.org/user/repo
+
+expanding an unknown scheme emits the input
+
+ $ hg expand-scheme foobar://this/that
+ foobar://this/that
+
+expanding a canonical URL emits the input
+
+ $ hg expand-scheme https://bitbucket.org/user/repo
+ https://bitbucket.org/user/repo
+
errors
$ cat errors.log
More information about the Mercurial-devel
mailing list