D912: test-alias: make it compatible with chg

quark (Jun Wu) phabricator at mercurial-scm.org
Mon Oct 2 23:59:26 UTC 2017


quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  https://phab.mercurial-scm.org/rHGad1bdea43965ec3d14d6a343bbec4e289208949c (dispatch: defer environment variable resolution in alias commands
  (BC), 2016-05-06) made environment variables lazily resolved. But after
  https://phab.mercurial-scm.org/D805 (alias: make alias command lazily resolved 2017-09-23), alias
  resolution happened after uisetup, which breaks the test for chg.
  
  `uisetup` is known to behave different in chg. Let's add a condition to
  match chg's output.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D912

AFFECTED FILES
  tests/test-alias.t

CHANGE DETAILS

diff --git a/tests/test-alias.t b/tests/test-alias.t
--- a/tests/test-alias.t
+++ b/tests/test-alias.t
@@ -541,7 +541,8 @@
   > EOF
 
   $ COUNT=1 hg showcount
-  2
+  1 (chg !)
+  2 (no-chg !)
 
 This should show id:
 



To: quark, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list