[Bug 4363] New: exception when trying to add .hg to .hgsub

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Sep 9 07:11:29 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4363

          Priority: normal
            Bug ID: 4363
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: exception when trying to add .hg to .hgsub
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: frvdamme at vub.ac.be
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.8.2
         Component: Mercurial
           Product: Mercurial

I accidentally added this line to .hgsub:

.hg = ../sfgs

result:

** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2]
** Mercurial Distributed SCM (version 2.8.2)
** Extensions loaded: graphlog
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in
run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in
dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 133, in
_runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 806, in
_dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 585, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 897, in
_runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 868, in
checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 803, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 512, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5386, in
status
    opts.get('subrepos'))
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1502, in
status
    listclean, listunknown)
  File "/usr/lib/python2.7/dist-packages/mercurial/dirstate.py", line 813, in
status
    full=full).iteritems():
  File "/usr/lib/python2.7/dist-packages/mercurial/dirstate.py", line 725, in
walk
    del results['.hg']
KeyError: '.hg'

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


More information about the Mercurial-devel mailing list