# HG changeset patch # User Anton Shestakov # Date 1690832862 10800 # Node ID b0cbad4d841f3f1263901b4cb199160aece37093 # Parent ca1c219bd59fade315612a3a39304efc9f77a8ad tests: importing with default topic&namespace values doesn't add extras diff -r ca1c219bd59f -r b0cbad4d841f tests/test-namespaces.t --- 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() {