Mercurial > evolve
diff tests/test-namespaces.t @ 6543:b0cbad4d841f
tests: importing with default topic&namespace values doesn't add extras
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 31 Jul 2023 16:47:42 -0300 |
parents | ca1c219bd59f |
children | fa14b9fc953d |
line wrap: on
line diff
--- a/tests/test-namespaces.t Mon Jul 31 16:23:52 2023 -0300 +++ b/tests/test-namespaces.t Mon Jul 31 16:47:42 2023 -0300 @@ -119,6 +119,38 @@ $ hg log -r tip -T '{rev}: {fqbn}\n' 1: stable//mynamespace/mytopic +Importing a patch with default namespace and topic values + + $ hg import - << EOF + > # HG changeset patch + > # User test + > # Date 0 0 + > # Thu Jan 01 00:00:00 1970 +0000 + > # Branch stable + > # Node ID 1111111111111111111111111111111111111111 + > # Parent 2222222222222222222222222222222222222222 + > # EXP-Topic-Namespace none + > # EXP-Topic + > more z + > + > diff --git a/z b/z + > --- a/z + > +++ b/z + > @@ -1,1 +1,1 @@ + > -z + > +zebra + > EOF + applying patch from stdin + + $ hg log -r tip -T '{rev}: {branch} {topic_namespace} {topic}\n' + 2: stable none + + $ hg log -r tip -T '{rev}: {fqbn}\n' + 2: stable + + $ hg log -r tip -T '{rev}: {join(extras, " ")}\n' + 2: branch=stable + Revsets $ nslog() {