Fri 01 Jun 2007 03:48:57 AM UTC, comment #3:
I'm new to Monotone and was trying to kill_rev_locally, since disapprove does not work for revisions with more than one ancestor (as documented). I ran into this crash and ran db regenerate_caches, which fixed it. Here is a transcript of what happened. Hopefully it will be useful.
- mtn heads
mtn: branch 'im.pidgin.soc.2007.msimprpl' is currently unmerged:
d1cff25b68dd1a54b088fc79b94cd2def7c7e222 -unavailable- 2007-06-01T03:03:49
ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b -unavailable- 2007-06-01T02:49:49
- mtn disapprove ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b
mtn: misuse: revision ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b has 2 changesets, cannot invert
1 mtn db kill_rev_locally ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b
- mtn diff
#
# no changes
#
- mtn heads
mtn: branch 'im.pidgin.soc.2007.msimprpl' is currently unmerged:
9089052bc7340d891f24310b9473339e418a7708 -unavailable- 2007-06-01T02:10:37
cc50c5d031ee381ef0b941b6b3518e21c4e83f8b -unavailable- 2007-06-01T02:49:32
d1cff25b68dd1a54b088fc79b94cd2def7c7e222 -unavailable- 2007-06-01T03:03:49
- mtn up -r d1cff25b68dd1a54b088fc79b94cd2def7c7e222
mtn: note: branch 'im.pidgin.soc.2007.msimprpl' has multiple heads
mtn: note: perhaps consider 'mtn merge'
mtn: already up to date at d1cff25b68dd1a54b088fc79b94cd2def7c7e222
- mtn db kill_rev_locally ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b
mtn: misuse: no such revision 'ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b'
- mtn db kill_rev_locally d1cff
mtn: expanded selector 'd1cff' -> 'i:d1cff'
mtn: expanding selection 'd1cff'
mtn: expanded to 'd1cff25b68dd1a54b088fc79b94cd2def7c7e222'
- mtn heads
mtn: branch 'im.pidgin.soc.2007.msimprpl' is currently unmerged:
9089052bc7340d891f24310b9473339e418a7708 -unavailable- 2007-06-01T02:10:37
cc50c5d031ee381ef0b941b6b3518e21c4e83f8b -unavailable- 2007-06-01T02:49:32
- mtn merge
mtn: 2 heads on branch 'im.pidgin.soc.2007.msimprpl'
mtn: [left] 9089052bc7340d891f24310b9473339e418a7708
mtn: [right] cc50c5d031ee381ef0b941b6b3518e21c4e83f8b
mtn: [merged] ea68583e2b0fbcfe4db5e432042e03ce9a3ec06b
terminate called after throwing an instance of 'std::logic_error'
what(): lru_writeback_cache.hh:99: invariant 'I(_dirty.empty())' violated
mtn: fatal signal: Aborted
this is almost certainly a bug in monotone.
please send this error message, the output of 'mtn --full-version',
and a description of what you were doing to -unavailable-
do not send a core dump, but if you have one,
please preserve it in case we ask you for information from it.
Aborted (core dumped)
|