[issue3165] diff on no-longer existing subrepository causes an error

Rene Schipp von Branitz Nielsen bugs at mercurial.selenic.com
Tue Dec 20 05:30:08 CST 2011


New submission from Rene Schipp von Branitz Nielsen <rbn at vitesse.com>:

A while ago, we had a project with a number of subrepos. Recently, we've
removed one of them (in the transcript below, it's called main/my_subrepo).

Today I did a "hg diff -rA:B main/dir/some_file.txt", where A was from a
time where we had the subrepo and B is from the time where we didn't.
This gave the output below (anonymized):



$ hg diff -r16751:17347 main/dir/some_file.txt
diff -r 2555baeaacad -r bd54155d27e8 main/dir
some_file.txt
--- a/main/dir/some_file.txt   Thu Nov 17 11:09:06 2011 +0100
+++ b/main/dir/some_file.txt   Tue Dec 20 11:22:33 2011 +0100
@@ -91,6 +91,7 @@
  ...
  ...
    ...
+   ...
  ...
  ...
  ...
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.4.3 (#1, Nov  3 2010, 12:52:40) [GCC 4.1.2 20080704 (Red Hat
4.1.2-48)]
** Mercurial Distributed SCM (version 2.0+7-54c0517c0fe8)
** Extensions loaded: rebase, color, transplant, mq
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in ?
    mercurial.dispatch.run()
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
27, in run
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
64, in dispatch
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
87, in _runcatch
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
684, in _dispatch
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
466, in runcommand
  File "usr/local/lib64/python2.4/site-packages/mercurial/extensions.py",
line 184, in wrap
  File "usr/local/lib64/python2.4/site-packages/hgext/color.py", line 373,
in colorcmd
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
738, in _runcommand
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
692, in checkargs
  File "usr/local/lib64/python2.4/site-packages/mercurial/dispatch.py", line
681, in <lambda>
  File "usr/local/lib64/python2.4/site-packages/mercurial/util.py", line
454, in check
  File "usr/local/lib64/python2.4/site-packages/mercurial/extensions.py",
line 138, in wrap
  File "usr/local/lib64/python2.4/site-packages/mercurial/util.py", line
454, in check
  File "usr/local/lib64/python2.4/site-packages/hgext/mq.py", line 3229, in
mqcommand
  File "usr/local/lib64/python2.4/site-packages/mercurial/util.py", line
454, in check
  File "/usr/lib64/python2.4/commands.py", line 2325, in diff
    
  File "usr/local/lib64/python2.4/site-packages/mercurial/cmdutil.py", line
585, in diffordiffstat
KeyError: 'main/my_subrepo'

----------
messages: 18362
nosy: rbn
priority: bug
status: unread
title: diff on no-longer existing subrepository causes an error

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


More information about the Mercurial-devel mailing list