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

            Bug ID: 6218
           Summary: Traceback when trying to bookmark 'wdir()'
           Product: Mercurial
           Version: 5.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: bookmarks
          Assignee: bugzi...@mercurial-scm.org
          Reporter: z...@zash.se
                CC: mercurial-devel@mercurial-scm.org
    Python Version: 3.7

~$ hg debuginstall
checking encoding (UTF-8)...
checking Python executable (/usr/bin/python3)
checking Python version (3.7.3)
checking Python lib (/usr/lib/python3.7)...
checking Python security support (sni,tls1.0,tls1.1,tls1.2)
checking Mercurial version (5.2)
checking Mercurial custom build ()
checking module policy (c)
checking installed modules (/usr/lib/python3/dist-packages/mercurial)...
checking registered compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines for wire protocol (zstd, zlib, bz2,
none)
checking "re2" regexp engine (missing)
checking templates (/usr/lib/python3/dist-packages/mercurial/templates)...
checking default template
(/usr/lib/python3/dist-packages/mercurial/templates/map-cmdline.default)
checking commit editor... (sensible-editor)
checking username...
 no username supplied
 (specify a username in your configuration file)
1 problems detected, please check your install!

~$ hg bookmark test -r 'wdir()'
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.7.3 (default, Apr  3 2019, 05:39:12) [GCC 8.3.0]
** Mercurial Distributed SCM (version 5.2)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mercurial/commandserver.py", line 459,
in _serverequest
    sv.serve()
  File "/usr/lib/python3/dist-packages/mercurial/commandserver.py", line 363,
in serve
    while self.serveone():
  File "/usr/lib/python3/dist-packages/mercurial/commandserver.py", line 337,
in serveone
    handler(self)
  File "/usr/lib/python3/dist-packages/mercurial/chgserver.py", line 536, in
runcommand
    return super(chgcmdserver, self).runcommand()
  File "/usr/lib/python3/dist-packages/mercurial/commandserver.py", line 321,
in runcommand
    ret = dispatch.dispatch(req) & 255
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 250, in
dispatch
    ret = _runcatch(req) or 0
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 424, in
_runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 433, in
_callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/lib/python3/dist-packages/mercurial/scmutil.py", line 177, in
callcatch
    return func()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 414, in
_runcatchfunc
    return _dispatch(req)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1174, in
_dispatch
    lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 862, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1185, in
_runcommand
    return cmdfunc()
  File "/usr/lib/python3/dist-packages/mercurial/dispatch.py", line 1171, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1843, in check
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mercurial/commands.py", line 1266, in
bookmark
    bookmarks.addbookmarks(repo, tr, names, rev, force, inactive)
  File "/usr/lib/python3/dist-packages/mercurial/bookmarks.py", line 986, in
addbookmarks
    marks.applychanges(repo, tr, changes)
  File "/usr/lib/python3/dist-packages/mercurial/bookmarks.py", line 196, in
applychanges
    self._del(name)
  File "/usr/lib/python3/dist-packages/mercurial/bookmarks.py", line 177, in
_del
    node = self._refmap.pop(mark)
KeyError: b'test'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to