Patchwork D6214: tests: demonstrate broken pull of "ffffffffffff" revision

login
register
mail settings
Submitter phabricator
Date April 5, 2019, 6:34 p.m.
Message ID <differential-rev-PHID-DREV-mt3joso7vpywfdyp5jfr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39512/
State Superseded
Headers show

Comments

phabricator - April 5, 2019, 6:34 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-pull.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-pull.t b/tests/test-pull.t
--- a/tests/test-pull.t
+++ b/tests/test-pull.t
@@ -75,6 +75,13 @@ 
   abort: unknown revision 'xxxxxxxxxxxxxxxxxx y'!
   [255]
 
+Test pull of working copy revision
+BROKEN: should give a better error message
+  $ hg pull -r 'ffffffffffff'
+  pulling from http://foo@localhost:$HGPORT/
+  abort: b2a_hex() argument 1 must be string or buffer, not None!
+  [255]
+
 Issue622: hg init && hg pull -u URL doesn't checkout default branch
 
   $ cd ..