[Bug 4097] New: hg strip can fail if mq is not enabled
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Nov 14 22:34:45 UTC 2013
http://bz.selenic.com/show_bug.cgi?id=4097
Priority: normal
Bug ID: 4097
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg strip can fail if mq is not enabled
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: jbjoerk at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.8
Component: Mercurial
Product: Mercurial
Traceback (most recent call last):
File "/usr/local/external/public/mercurial/x86_64/2.8.0/bin/hg", line 38, in
<module>
mercurial.dispatch.run()
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 28, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 69, in dispatch
ret = _runcatch(req)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 133, in _runcatch
return _dispatch(req)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 806, in _dispatch
cmdpats, cmdoptions)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 585, in runcommand
ret = _runcommand(ui, options, cmd, d)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/extensions.py",
line 196, in wrap
return wrapper(origfn, *args, **kwargs)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/hgext/pager.py",
line 138, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/extensions.py",
line 196, in wrap
return wrapper(origfn, *args, **kwargs)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/hgext/color.py",
line 419, in colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 897, in _runcommand
return checkargs()
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 868, in checkargs
return cmdfunc()
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/dispatch.py",
line 803, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/util.py",
line 512, in check
return func(*args, **kwargs)
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/hgext/strip.py",
line 215, in stripcmd
strip(ui, repo, revs, backup=backup, update=update,
force=opts.get('force'))
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/hgext/strip.py",
line 54, in strip
if p2 != nullid and p2 in [x.node for x in repo.mq.applied]:
File
"/usr/local/external/public/mercurial/x86_64/2.8.0/lib/python2.7/site-packages/mercurial/repoview.py",
line 204, in __getattr__
return getattr(self._unfilteredrepo, attr)
AttributeError: 'localrepository' object has no attribute 'mq'
Can be reproduced by:
phb at hsphb:~/hg2/hg3$ hg init
phb at hsphb:~/hg2/hg3$ touch a; hg add a; hg commit -m "a"
phb at hsphb:~/hg2/hg3$ hg up null
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
phb at hsphb:~/hg2/hg3$ touch b; hg add b; hg commit -m "b"
created new head
phb at hsphb:~/hg2/hg3$ hg merge
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
phb at hsphb:~/hg2/hg3$ hg commit -m "merged"
phb at hsphb:~/hg2/hg3$ hg strip -r -1
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list