Patchwork D923: test-convert-cvs: make test compatible with chg

login
register
mail settings
Submitter phabricator
Date Oct. 4, 2017, 1:41 p.m.
Message ID <3a990a7b7f7dff328cff3da7c23b0b1f@localhost.localdomain>
Download mbox | patch
Permalink /patch/24466/
State Not Applicable
Headers show

Comments

phabricator - Oct. 4, 2017, 1:41 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG47b9c572ca32: test-convert-cvs: make test compatible with chg (authored by singhsrb, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D923?vs=2383&id=2405

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

AFFECTED FILES
  tests/test-convert-cvs.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-convert-cvs.t b/tests/test-convert-cvs.t
--- a/tests/test-convert-cvs.t
+++ b/tests/test-convert-cvs.t
@@ -12,10 +12,10 @@ 
   $ echo "convert = " >> $HGRCPATH
   $ cat > cvshooks.py <<EOF
   > def cvslog(ui,repo,hooktype,log):
-  >     print("%s hook: %d entries"%(hooktype,len(log)))
+  >     ui.write('%s hook: %d entries\n' % (hooktype,len(log)))
   > 
   > def cvschangesets(ui,repo,hooktype,changesets):
-  >     print("%s hook: %d changesets"%(hooktype,len(changesets)))
+  >     ui.write('%s hook: %d changesets\n' % (hooktype,len(changesets)))
   > EOF
   $ hookpath=`pwd`
   $ cat <<EOF >> $HGRCPATH