Mercurial hg Subrepository Problem - "abort: unknown revision'
Posted
by Tex
on Stack Overflow
See other posts from Stack Overflow
or by Tex
Published on 2010-03-11T16:24:21Z
Indexed on
2010/03/11
20:09 UTC
Read the original article
Hit count: 666
Note: I asked this yesterday over at kiln.stackexchange.com, but haven't gotten an answer, and it's holding up my work. So I figured I'd give it a shot here.
My main mercurial repository has a bunch of subrepositories in it. During initial setup, I made a mistake in my .hgsub
. Namely, I pointed two subrepositories to the same directory.
What I should have had:
sites/1=sites/1
sites/2=sites/2
sites/3=sites/3
What I actually had:
sites/1=sites/1
sites/2=sites/2
sites/2=sites/3
Stupid copy/paste error. I committed the incorrect .hgsub
, not realizing my error. A few revisions later, while adding a some new subrespositories to .hgsub
, I noticed the mistake and fixed it inside .hgsub
. I committed and kept rolling along. I've committed a reasonable amount of work that I'd prefer not to redo since I 'fixed' the mistake in .hgsub
.
Now we come to the actual problem: I've made some changes inside the subrepository sites/3
, and when I try to commit the main repository, I get the following error:
abort: unknown revision 'LongGUIDLookingString'
I found this discussion, which seems to address the same problem I'm having, but I can't quite work out how bos fixed it. What do I need to do in order to fix this?
© Stack Overflow or respective owner