reviewboard: prune output not relevant to test; r=dminor draft
authorGregory Szorc <gps@mozilla.com>
Tue, 01 Mar 2016 13:53:49 -0800
changeset 7417 2893a7c38300204dcb32f639ac496a1a1fbc0004
parent 7416 3ed6d35823834ee8d3e4190d7d30a13cc5a6db86
child 7418 a5788d4cafeeefc55729b98450300662c05afbfc
push id675
push usergszorc@mozilla.com
push dateWed, 02 Mar 2016 22:08:21 +0000
reviewersdminor
reviewboard: prune output not relevant to test; r=dminor `hg histedit` has become less chatty in modern versions of Mercurial. This was causing tests to fail due to inconsistent output between versions. This commit greps out output that varies between versions so tests pass. MozReview-Commit-ID: 68RwPCqsLG9
hgext/reviewboard/tests/test-commitid.t
--- a/hgext/reviewboard/tests/test-commitid.t
+++ b/hgext/reviewboard/tests/test-commitid.t
@@ -80,20 +80,17 @@ Histedit should preserve commit ids when
   
 
   $ cat >> commands << EOF
   > p 4a17019033eb
   > p 0aa5a5b9a166
   > p bb89e4592815
   > EOF
 
-  $ hg histedit -r 4a17019033eb --commands commands
-  1 files updated, 0 files merged, 1 files removed, 0 files unresolved
-  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg histedit -r 4a17019033eb --commands commands | grep -v 'files updated'
   saved backup bundle to $TESTTMP/repo1/.hg/strip-backup/bb89e4592815-c4460a5c-backup.hg (glob)
 
   $ hg log -G -T '{rev}:{node|short} {desc}\n' -r '::.'
   @  5:986c4bf069fe histedit2
   |
   |  MozReview-Commit-ID: F63vXs
   o  4:84bc2f59c8ec histedit3
   |