[issue2380] Bookmarks: failed to create new bookmark.

Zada bugs at mercurial.selenic.com
Thu Sep 16 00:30:22 UTC 2010


New submission from Zada <ro.zorg at gmail.com>:

Previously there was few bookmarks.
then hg bookmark  show only one. Ok, lets try to create another one and we 
see the traceback like below.

To solve this, I'm delete existing bookmark. Then I can create my new one.

** Python 2.7 (r27:82500, Aug 12 2010, 03:35:26) [GCC 4.2.1 (Apple Inc. 
build 5664)]
** Mercurial Distributed SCM (version 1.6.3)
** Extensions loaded: mq, hgk, extdiff, churn, fetch, graphlog, highlight, 
color, pager, progress, review, record, rebase, bookmarks, keyword, collapse
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 54, in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 494, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 355, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/extensions.py", line 174, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/hgext/pager.py", line 95, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/extensions.py", line 174, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/hgext/color.py", line 211, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 545, in _runcommand
    return checkargs()
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 499, in checkargs
    return cmdfunc()
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/dispatch.py", line 492, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/util.py", line 420, in check
    return func(*args, **kwargs)
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/hgext/bookmarks.py", line 144, in bookmark
    if ((mark in repo.branchtags() or mark == repo.dirstate.branch())
  File "/usr/local/Cellar/python/2.7/lib/python2.7/site-
packages/mercurial/localrepo.py", line 360, in branchtags
    for bn, heads in self.branchmap().iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems'

----------
messages: 13626
nosy: Zada
priority: bug
status: unread
title: Bookmarks: failed to create new bookmark.

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2380>
____________________________________________________


More information about the Mercurial-devel mailing list