Broke repository using "hg archive"

Seb tapamilastiko at free.fr
Fri Jun 9 10:18:59 CDT 2006


Hello,

While I was testing mercurial features, I made a wrong action wich
broke the repository. I tryed to reproduce bug and I found it was
a silly use of "archive" that causes the problem

The copies of repository before (bug-archive-sane.tar.bz2) and after bug
(bug-archive.tar.bz2) are in attachment. This is how I
broke it :

#####
$ hg archive casusbelli
$ hg backout 2
removing casusbelli/.hg_archival.txt
removing casusbelli/file.1
removing casusbelli/file.2
removing casusbelli/file.3
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3182, in run sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3343, in dispatch return d()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3318, in <lambda> d = lambda: func(u, repo, *args, **cmdoptions)
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
785, in backout commit(ui, repo, **commit_opts)
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
983, in commit repo.commit(files, message, opts['user'], opts['date'],
match) File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py",
line 531, in commit (new, remove))
  File "/usr/lib/python2.4/site-packages/mercurial/manifest.py", line
148, in add raise AssertionError(
AssertionError: failed to remove casusbelli/.hg_archival.txt from
manifest

transaction abort!
rollback completed
#####

casusbelli wasn't commited or added, so theorically it would have been
ignored... The problem is that the repository seems definitively
broken : output of "hg commit" is near the same of above, even when
casusbelli is removed :

#####
$ hg commit 
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3182, in run sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3343, in dispatch return d()
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
3318, in <lambda> d = lambda: func(u, repo, *args, **cmdoptions)
  File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
983, in commit repo.commit(files, message, opts['user'], opts['date'],
match) File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py",
line 531, in commit (new, remove))
  File "/usr/lib/python2.4/site-packages/mercurial/manifest.py", line
148, in add raise AssertionError(
AssertionError: failed to remove casusbelli/.hg_archival.txt from
manifest

transaction abort!
rollback completed
#####

I don't know python enough to help you more. I hope though this report
will be useful for you.

Best regards,
Seb.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-archive-sane.tar.bz2
Type: application/octet-stream
Size: 1511 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060609/1ba4cf76/bug-archive-sane.tar.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-archive.tar.bz2
Type: application/octet-stream
Size: 1824 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060609/1ba4cf76/bug-archive.tar.obj


More information about the Mercurial mailing list