[Bug 5820] New: hg push fails with ValueError: 20-byte hash required

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Mar 15 16:40:58 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=5820

            Bug ID: 5820
           Summary: hg push fails with ValueError: 20-byte hash required
           Product: Mercurial
           Version: 4.3.1
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: oliver.sourbut at thetradedesk.com
                CC: mercurial-devel at mercurial-scm.org

Normally push works fine. I have

push = push --rev . --new-branch

as an [alias] in mercurial.ini.

In one instance I had the following console output after running

> hg push
.

searching for changes
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64
bit (AMD64)]
** Mercurial Distributed SCM (version 4.3.1)
** Extensions loaded: rebase, strip, mq, purge, graphlog
Traceback (most recent call last):
  File "hg", line 61, in <module>
  File "mercurial\dispatch.pyo", line 81, in run
  File "mercurial\dispatch.pyo", line 162, in dispatch
  File "mercurial\dispatch.pyo", line 302, in _runcatch
  File "mercurial\dispatch.pyo", line 310, in _callcatch
  File "mercurial\scmutil.pyo", line 150, in callcatch
  File "mercurial\dispatch.pyo", line 292, in _runcatchfunc
  File "mercurial\dispatch.pyo", line 896, in _dispatch
  File "mercurial\dispatch.pyo", line 658, in runcommand
  File "mercurial\dispatch.pyo", line 904, in _runcommand
  File "mercurial\dispatch.pyo", line 893, in <lambda>
  File "mercurial\util.pyo", line 1077, in check
  File "mercurial\dispatch.pyo", line 516, in __call__
  File "mercurial\util.pyo", line 1077, in check
  File "mercurial\extensions.pyo", line 322, in closure
  File "mercurial\util.pyo", line 1077, in check
  File "hgext\mq.pyo", line 3542, in mqcommand
  File "mercurial\util.pyo", line 1077, in check
  File "mercurial\commands.pyo", line 4065, in push
  File "mercurial\exchange.pyo", line 478, in push
  File "mercurial\exchange.pyo", line 911, in _pushbundle2
  File "mercurial\exchange.pyo", line 758, in _pushb2ctx
  File "mercurial\exchange.pyo", line 694, in _pushcheckoutgoing
  File "mercurial\discovery.pyo", line 332, in checkheads
  File "mercurial\discovery.pyo", line 217, in _headssummary
  File "mercurial\revlog.pyo", line 420, in hasnode
  File "mercurial\changelog.pyo", line 353, in rev
  File "mercurial\revlog.pyo", line 439, in rev
ValueError: 20-byte hash required

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list