tests: avoid logging a commit with a Unicode character in test-phabricator.t
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 19 Mar 2020 14:54:10 -0400
changeset 44576 2ec6160449aa
parent 44575 a6ef1e8e2f6d
child 44577 f8427841c8fc
tests: avoid logging a commit with a Unicode character in test-phabricator.t The previous output was generated on Windows, and should have been wrapped in `HGENCODING=utf-8` like it is earlier in the test. It's simpler to just avoid it. I only noticed the output change when I got around to running it on a Mac. Differential Revision: https://phab.mercurial-scm.org/D8303
tests/test-phabricator.t
--- a/tests/test-phabricator.t	Fri Mar 13 12:16:20 2020 -0700
+++ b/tests/test-phabricator.t	Thu Mar 19 14:54:10 2020 -0400
@@ -332,7 +332,7 @@
   $ hg phabimport --stack 'D7918' --test-vcr "$VCR/phabimport-stack.json"
   applying patch from D7917
   applying patch from D7918
-  $ hg log -G -Tcompact
+  $ hg log -r .: -G -Tcompact
   o  3[tip]   aaef04066140   1970-01-01 00:00 +0000   test
   |    create draft change for phabricator testing
   |
@@ -341,10 +341,7 @@
   |
   @  1   a692622e6937   1970-01-01 00:00 +0000   test
   |    create beta for phabricator test
-  |
-  o  0   c44b38f24a45   1970-01-01 00:00 +0000   test
-       create alpha for phabricator test \x80 (esc)
-  
+  ~
 Phabimport can create secret commits
 
   $ hg rollback --config ui.rollback=True
@@ -353,7 +350,7 @@
   >    --config phabimport.secret=True
   applying patch from D7917
   applying patch from D7918
-  $ hg log -T phases
+  $ hg log -r 'reverse(.:)' -T phases
   changeset:   3:aaef04066140
   tag:         tip
   phase:       secret
@@ -373,11 +370,5 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     create beta for phabricator test
   
-  changeset:   0:c44b38f24a45
-  phase:       public
-  user:        test
-  date:        Thu Jan 01 00:00:00 1970 +0000
-  summary:     create alpha for phabricator test \x80 (esc)
-  
 
   $ cd ..