Issue685

Title trackback in grep -r after rename
Priority bug Status resolved
Superseder Nosy List HenrykGerlach, pmezard
Assigned To pmezard Topics

Created on 2007-08-14.22:20:23 by HenrykGerlach, last changed 2007-09-03.15:24:17 by HenrykGerlach.

Messages
msg3958 (view) Author: HenrykGerlach Date: 2007-09-03.15:24:15
Since the patch solved my problem, I'm changing this to solved.

Thank you.
msg3820 (view) Author: pmezard Date: 2007-08-15.14:48:52
Fixed in crew and crew-stable as 64888ff907f4, thanks.
msg3818 (view) Author: HenrykGerlach Date: 2007-08-14.22:20:19
hg version
#Mercurial Distributed SCM (version 0.9.4)
#
#Copyright (C) 2005-2007 Matt Mackall <mpm@selenic.com> and others
#This is free software; see the source for copying conditions. There is NO
#warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hg init test
cd test
cat >A << END
AAAAA
END
hg addremove
# adding A
hg commit -m init

hg rename A B
hg commit -m renamed

hg grep AAAA
#A:0:AAAAA
#B:1:AAAAA

hg grep -r 1 AAAA
#** unknown exception encountered, details follow
#** report bug details to http://www.selenic.com/mercurial/bts
#** or mercurial@selenic.com
#** Mercurial Distributed SCM (version 0.9.4)
#Traceback (most recent call last):
#  File "/usr/local/bin/hg", line 11, in ?
#    mercurial.commands.run()
#  File "/usr/local//lib/python2.4/site-packages/mercurial/commands.py", line
3110, in run
#    sys.exit(dispatch(sys.argv[1:], argv0=sys.argv[0]))
#  File "/usr/local//lib/python2.4/site-packages/mercurial/commands.py", line
3107, in dispatch
#    return cmdutil.runcatch(u, args, argv0=argv0)
#  File "/usr/local//lib/python2.4/site-packages/mercurial/cmdutil.py", line 37,
in runcatch
#    return dispatch(ui, args, argv0=argv0)
#  File "/usr/local//lib/python2.4/site-packages/mercurial/cmdutil.py", line
364, in dispatch
#    ret = runcommand(ui, options, cmd, d)
#  File "/usr/local//lib/python2.4/site-packages/mercurial/cmdutil.py", line
417, in runcommand
#    return checkargs()
#  File "/usr/local//lib/python2.4/site-packages/mercurial/cmdutil.py", line
373, in checkargs
#    return cmdfunc()
#  File "/usr/local//lib/python2.4/site-packages/mercurial/cmdutil.py", line
356, in <lambda>
#    d = lambda: func(ui, repo, *args, **cmdoptions)
#  File "/usr/local//lib/python2.4/site-packages/mercurial/commands.py", line
1221, in grep
#    if fn not in copies.get(prev[fn], {}):
#KeyError: 'A'
#
History
Date User Action Args
2007-09-03 15:24:17HenrykGerlachsetstatus: testing -> resolved
nosy: pmezard, HenrykGerlach
messages: + msg3958
2007-09-03 15:15:06HenrykGerlachsetnosy: pmezard, HenrykGerlach
messages: - msg3826
2007-08-15 15:37:54HenrykGerlachsetnosy: pmezard, HenrykGerlach
messages: + msg3826
2007-08-15 14:48:53pmezardsetstatus: unread -> testing
assignedto: pmezard
messages: + msg3820
nosy: + pmezard
2007-08-14 22:20:23HenrykGerlachcreate