Patchwork D8303: tests: avoid logging a commit with a Unicode character in test-phabricator.t

login
register
mail settings
Submitter phabricator
Date March 19, 2020, 7:01 p.m.
Message ID <differential-rev-PHID-DREV-d26fy5p7eb6smp4h3ex6-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45832/
State Superseded
Headers show

Comments

phabricator - March 19, 2020, 7:01 p.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-phabricator.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-phabricator.t b/tests/test-phabricator.t
--- a/tests/test-phabricator.t
+++ b/tests/test-phabricator.t
@@ -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 ..