From what I read from the mercurial subrepo page http://mercurial.selenic.com/wiki/Subrepository, the format looks like this

Key = Value
Another Key = Value
[possible section]
possible key = value

and what I want is everything before a section