comparison tests/test-pull.t @ 42079:fcd7a91dec23

localrepo: don't allow lookup of working directory revision It seems that repo.lookup(), which is what supports the "lookup" wire protocol command, should not allow the working copy revision input. This fixes both the pull test and the convert test I just added. Differential Revision: https://phab.mercurial-scm.org/D6215
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 05 Apr 2019 11:24:00 -0700
parents 50b69c08651b
children 24b1a8eb73aa
comparison
equal deleted inserted replaced
42078:50b69c08651b 42079:fcd7a91dec23
74 pulling from http://foo@localhost:$HGPORT/ 74 pulling from http://foo@localhost:$HGPORT/
75 abort: unknown revision 'xxxxxxxxxxxxxxxxxx y'! 75 abort: unknown revision 'xxxxxxxxxxxxxxxxxx y'!
76 [255] 76 [255]
77 77
78 Test pull of working copy revision 78 Test pull of working copy revision
79 BROKEN: should give a better error message
80 $ hg pull -r 'ffffffffffff' 79 $ hg pull -r 'ffffffffffff'
81 pulling from http://foo@localhost:$HGPORT/ 80 pulling from http://foo@localhost:$HGPORT/
82 abort: b2a_hex() argument 1 must be string or buffer, not None! 81 abort: unknown revision 'ffffffffffff'!
83 [255] 82 [255]
84 83
85 Issue622: hg init && hg pull -u URL doesn't checkout default branch 84 Issue622: hg init && hg pull -u URL doesn't checkout default branch
86 85
87 $ cd .. 86 $ cd ..