[bug] Ghost modification in the dirstate

Emanuele Aina faina.mail at tiscali.it
Mon Sep 12 15:39:39 CDT 2005


I'm experiencing again the bug someone reported a while ago about "hg 
status" telling that there are modification to a file and "hg diff" 
returning nothing.

Neither removing the file and doing an "hg revert" on it resolve the 
situation.

hg version
# Mercurial Distributed SCM (version 0.6c)
#
# Copyright (C) 2005 Matt Mackall <mpm at selenic.com>
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

# Thi is the test showing the problem
# hg status should return nothing, if I've not misunderstood something
cd sito/
rm style/magher-style.css
hg revert style/magher-style.css
hg status
# M style/magher-style.css


ls -lR
.:
totale 100
-rw-r--r--  1 em em 21496 2005-08-16 19:20 buona_traduzione.html
-rw-r--r--  1 em em 21034 2005-09-10 19:22 ChangeLog
drwxr-xr-x  3 em em  4096 2005-08-11 17:01 curriculum/
drwxr-xr-x  3 em em  4096 2005-09-11 17:22 glossario/
drwxr-xr-x  2 em em  4096 2005-09-12 08:31 gtksourceview/
-rw-r--r--  1 em em 14147 2005-09-11 15:47 index.html
-rw-r--r--  1 em em  2976 2005-08-11 16:55 index_netstrike.html
-rw-r--r--  1 em em  7496 2005-08-16 19:21 irda_howto.html
drwxr-xr-x  2 em em  4096 2005-09-11 17:22 pyng/
drwxr-xr-x  2 em em  4096 2005-09-11 17:22 shadow/
drwxr-xr-x  2 em em  4096 2005-09-12 08:33 style/

./curriculum:
totale 76
-rw-r--r--  1 em em 10627 2005-08-25 18:04 curriculum.html
-rw-r--r--  1 em em 55652 2005-08-25 18:04 curriculum.pdf
drwxr-xr-x  2 em em  4096 2005-08-10 16:00 html/

./curriculum/html:
totale 12
-rw-r--r--  1 em em  416 2005-08-25 18:04 curriculum-layout.css
-rw-r--r--  1 em em 1752 2005-08-25 18:04 curriculum-style.css
-rw-r--r--  1 em em 3786 2005-08-25 18:04 EuropeFlagCMYK.png

./glossario:
totale 76
-rw-r--r--  1 em em 43731 2005-07-15 16:57 glossario.html
-rw-r--r--  1 em em  8510 2005-07-15 16:57 glossario_tag.tar.gz
-rw-r--r--  1 em em 12444 2005-09-11 17:21 index.html
drwxr-xr-x  2 em em  4096 2005-07-15 16:57 old/

./glossario/old:
totale 12
-rw-r--r--  1 em em 11827 2005-07-15 16:57 glossario.tgz

./gtksourceview:
totale 1280
-rw-r--r--  1 em em  27986 2005-08-11 17:03 gtksourceview-demo.png
-rw-r--r--  1 em em 410632 2005-08-11 17:03 gtksourceview.pdf
-rw-r--r--  1 em em 845563 2005-06-24 15:56 gtksourceview.tar.gz
-rw-r--r--  1 em em   9410 2005-09-12 08:31 index.html

./pyng:
totale 8
-rw-r--r--  1 em em 7755 2005-09-11 17:22 index.html

./shadow:
totale 124
-rw-r--r--  1 em em  1842 2005-08-16 19:21 examples.html
-rw-r--r--  1 em em 10860 2005-09-11 17:22 index.html
-rw-r--r--  1 em em  2021 2005-08-31 20:37 shadow.css
-rw-r--r--  1 em em  5203 2005-07-26 23:31 shadow.png
-rw-r--r--  1 em em 86608 2005-07-26 23:31 shadow.xcf
-rw-r--r--  1 em em  3611 2005-07-26 23:31 test.jpg

./style:
totale 80
-rw-r--r--  1 em em 4922 2005-08-17 16:27 browser_detect.js
-rw-r--r--  1 em em  728 2005-08-02 14:58 colors-blue.css
-rw-r--r--  1 em em  969 2005-08-10 20:50 colors-green.css
-rw-r--r--  1 em em  719 2005-08-02 14:58 colors-orange.css
-rw-r--r--  1 em em 3071 2005-06-24 15:56 csshover.htc
-rw-r--r--  1 em em  679 2005-06-24 15:56 e_icon.png
-rw-r--r--  1 em em 1029 2005-06-24 15:56 e_icon.svg
-rw-r--r--  1 em em  366 2005-08-19 12:21 handleevent.js
-rw-r--r--  1 em em 3500 2005-08-19 12:52 iefixhover.js
-rw-r--r--  1 em em  626 2005-09-11 16:10 magher-colors.css
-rw-r--r--  1 em em 1307 2005-09-11 16:10 magher-layout.css
-rw-r--r--  1 em em 2829 2005-09-12 08:33 magher-style.css
-rw-r--r--  1 em em 5481 2005-09-10 21:35 setificio.css
-rw-r--r--  1 em em 5203 2005-09-10 18:29 shadow.png
-rw-r--r--  1 em em 1216 2005-08-11 22:25 springhaze-layout.css
-rw-r--r--  1 em em 3730 2005-08-11 22:25 springhaze-style.css
-rw-r--r--  1 em em 2042 2005-08-19 12:51 styleswitcher.js



hg debugstate
# n 644         26 06/16/05 21:02:29 .htaccess
# n 644      21034 09/10/05 19:22:15 ChangeLog
# n 644      21496 08/16/05 19:20:05 buona_traduzione.html
# n 644      10627 08/25/05 18:04:10 curriculum/curriculum.html
# n 644      55652 08/25/05 18:04:13 curriculum/curriculum.pdf
# n 644       3786 08/10/05 16:00:46 curriculum/html/EuropeFlagCMYK.png
# n 644        416 08/25/05 18:04:19 curriculum/html/curriculum-layout.css
# n 644       1752 08/25/05 18:04:19 curriculum/html/curriculum-style.css
# n 644      43731 06/16/05 21:02:29 glossario/glossario.html
# n 644       8510 06/16/05 21:02:29 glossario/glossario_tag.tar.gz
# n 644      12444 09/11/05 17:21:48 glossario/index.html
# n 644      11827 06/16/05 21:02:29 glossario/old/glossario.tgz
# n 644      27986 07/27/05 21:51:48 gtksourceview/gtksourceview-demo.png
# n 644     410632 05/29/05 13:19:10 gtksourceview/gtksourceview.pdf
# n 644     845563 06/16/05 23:44:13 gtksourceview/gtksourceview.tar.gz
# n 644       9410 09/12/05 08:31:01 gtksourceview/index.html
# n 644      14147 09/11/05 15:47:50 index.html
# n 644       2976 06/16/05 21:02:29 index_netstrike.html
# n 644       7496 08/11/05 22:24:42 irda_howto.html
# n 644       7755 09/11/05 17:22:01 pyng/index.html
# n 644       1842 08/16/05 19:21:48 shadow/examples.html
# n 644      10860 09/11/05 17:22:10 shadow/index.html
# n 644       2021 08/10/05 22:19:59 shadow/shadow.css
# n 644       5203 07/26/05 23:31:45 shadow/shadow.png
# n 644      86608 07/26/05 23:31:45 shadow/shadow.xcf
# n 644       3611 07/26/05 23:31:45 shadow/test.jpg
# n 644       4922 06/16/05 21:02:29 style/browser_detect.js
# n 644        728 08/02/05 14:58:20 style/colors-blue.css
# n 644        969 08/10/05 20:50:23 style/colors-green.css
# n 644        719 08/02/05 14:58:04 style/colors-orange.css
# n 644       3071 06/16/05 21:02:29 style/csshover.htc
# n 644        679 06/16/05 21:02:29 style/e_icon.png
# n 644       1029 06/16/05 21:02:29 style/e_icon.svg
# n 644        366 08/19/05 12:21:17 style/handleevent.js
# n 644       3500 08/19/05 12:52:00 style/iefixhover.js
# n 644        626 09/11/05 16:10:12 style/magher-colors.css
# n 644       1307 09/11/05 16:10:17 style/magher-layout.css
# n 644       2829 09/11/05 17:19:41 style/magher-style.css
# n 644       5481 09/10/05 21:35:27 style/setificio.css
# n 644       5203 09/10/05 18:29:29 style/shadow.png
# n 644       1216 08/11/05 22:25:31 style/springhaze-layout.css
# n 644       3730 08/11/05 22:25:41 style/springhaze-style.css
# n 644       2042 08/19/05 12:51:24 style/styleswitcher.js

hg debugindex style/magher-style.css
# Traceback (most recent call last):
#   File "/usr/bin/hg", line 13, in ?
#     commands.run()
#   File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 
1461, in run
#     sys.exit(dispatch(sys.argv[1:]))
#   File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 
1571, in dispatch
#     return d()
#   File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 
1558, in <lambda>
#    d = lambda: func(u, *args, **cmdoptions)
#   File "/usr/lib/python2.3/site-packages/mercurial/commands.py", line 
615, in debugindex
#     r = hg.revlog(hg.opener(""), file_, "")
#   File "/usr/lib/python2.3/site-packages/mercurial/revlog.py", line 
149, in __init__
#     e = struct.unpack(indexformat, i[f:f + s])
# struct.error: unpack str size does not match format

Mercurial dies with this exception for every file in the style, shadow 
and pyng
directory. Others seems fine.

If needed I can post the whole tar'ed archive here, or send it privately.

-- 
Buongiorno.
Complimenti per l'ottima scelta.


More information about the Mercurial mailing list