[Bug 6841] New: draft topic changeset already in server not found in discovery branch info with topic has trailing //

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Aug 22 16:44:21 UTC 2023


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

            Bug ID: 6841
           Summary: draft topic changeset already in server not found in
                    discovery branch info with topic has trailing //
           Product: Mercurial
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: melutovich at gmail.com
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org
    Python Version: ---

I have a draft changeset on a topic that exists in my real repo on the server,
accessible by a draft repo using server.view=visible a repo share of the real
repo; I pulled that into a local repo, when I attempt to push to the public
share repo of the real server (server.view=immutable).
=I get an error on the push
summary of the error:
File "/usr/local/lib64/python2.7/site-packages/mercurial/discovery.py", line
279, in _headssummary
headssum[branch][1][:] = newheads
'prod_10200//topicName123//'

fuller details

hg outgoing
comparing with ssh://hg@xyz.com/joined/public
searching for changes
changeset:   27507:c71732efd61a
branch:      prod_10200
tag:         tip
topic:       topicName123
parent:      27393:260655a366ec
user:        Mitchell Elutovich <melutovich at gmail.com>
date:        Mon Aug 07 13:05:54 2023 +0100
summary:     ABC123

pushing to ssh://hg@hg.xyz.com/joined/public
searching for changes
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.5 (default, Jun 28 2022, 15:30:04) [GCC 4.8.5 20150623 (Red Hat
4.8.5-44)]
** Mercurial Distributed SCM (version 5.6.1)
** Extensions loaded: share, keyword, extdiff, transplant, convert, graphlog,
purge, strip, mq, rebase, hggit, evolve, topic
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 43, in <module>
    dispatch.run()
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
113, in run
    status = dispatch(req)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
303, in dispatch
    ret = _runcatch(req) or 0
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
479, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
488, in _callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/scmutil.py", line
153, in callcatch
    return func()
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
469, in _runcatchfunc
    return _dispatch(req)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
1233, in _dispatch
    lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
917, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
1244, in _runcommand
    return cmdfunc()
  File "/usr/local/lib64/python2.7/site-packages/mercurial/dispatch.py", line
1230, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/hgext/mq.py", line 4222, in
mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/home/melutovich/pkgs/evolve/hgext3rd/topic/__init__.py", line 1465, in
pushoutgoingwrap
    return orig(ui, repo, *args, **opts)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/home/melutovich/pkgs/evolve/hgext3rd/topic/flow.py", line 94, in
wrappush
    return orig(repo, remote, *args, **newargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/util.py", line 1867,
in check
    return func(*args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/commands.py", line
5540, in push
    opargs=opargs,
  File "/home/melutovich/pkgs/evolve/hgext3rd/evolve/__init__.py", line 579, in
push
    return orig(repo, *args, **opts)
  File "/home/melutovich/pkgs/hg-git/hggit/util.py", line 63, in inner
    return f(*args, **kwargs)
  File "/home/melutovich/pkgs/hg-git/hggit/__init__.py", line 596, in
exchangepush
    opargs=None, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/exchange.py", line
655, in push
    _pushbundle2(pushop)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/exchange.py", line
1307, in _pushbundle2
    ret = partgen(pushop, bundler)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/exchange.py", line
1047, in _pushb2ctx
    if not _pushcheckoutgoing(pushop):
  File "/usr/local/lib64/python2.7/site-packages/mercurial/exchange.py", line
930, in _pushcheckoutgoing
    discovery.checkheads(pushop)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/discovery.py", line
383, in checkheads
    headssum = _headssummary(pushop)
  File "/home/melutovich/pkgs/evolve/hgext3rd/topic/discovery.py", line 115, in
_headssummary
    return orig(pushop, *args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/mercurial/discovery.py", line
279, in _headssummary
    headssum[branch][1][:] = newheads
KeyError: 'prod_10200//topicName123//'

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


More information about the Mercurial-devel mailing list