[issue241] update and revert produces inconsistent repositories

Faheem Mitha mercurial-bugs at selenic.com
Thu May 11 21:40:48 CDT 2006


New submission from Faheem Mitha <faheem at email.unc.edu>:

Hi,

Grab the tarball from http://dulci.org/~faheem/prebug.tar.gz and do the 
following to it. Note prebug has no problems yet.

When running update and revert as follows, wackiness ensues.

faheem at theda:~/prebug$ hg up 678
6 files updated, 0 files merged, 1 files removed, 0 files unresolved
faheem at theda:~/prebug$ hg st
? c++/.RData
? c++/.Rhistory
? c++/environment.new.hpp
faheem at theda:~/prebug$ hg revert -r tip

faheem at theda:~/prebug$ hg st
M python/msipy/__init__.py
M python/msipy/environment.py
M python/msipy/test_environment.py
M test/test_environment.py
M test/test_integrator.py
M test/test_msi.py
A test/test_action.py
R c++/.RData
R c++/.Rhistory
R c++/environment.new.hpp

Voila, bugapalooza! Since .RData etc were never added to the repos, it 
should be impossible to schedule them for removal from the repos.

faheem at theda:~/prebug$ hg ci
** 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 
3200, in run
     sys.exit(dispatch(sys.argv[1:]))
   File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 
3371, in dispatch
     return d()
   File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 
3346, in <lambda>
     d = lambda: func(u, repo, *args, **cmdoptions)
   File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line 995, 
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 c++/.RData from manifest

Gorblimey. You can grab the result of these operations at 
http://dulci.org/~faheem/buggy.tar.gz in case you can't reproduce it.

                                                         Regards, Faheem.

----------
messages: 1239
nosy: bos, faheem
priority: bug
status: unread
title: update and revert produces inconsistent repositories

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



More information about the Mercurial mailing list