}
LinkedHashMap<Range, List<Nodeid>> rv = new LinkedHashMap<HgRemoteRepository.Range, List<Nodeid>>(ranges.size() * 4 / 3);
try {
remote.sessionBegin();
InputStreamReader is = new InputStreamReader(remote.between(ranges), "US-ASCII");
StreamTokenizer st = new StreamTokenizer(is);
st.ordinaryChars('0', '9');
st.wordChars('0', '9');
st.eolIsSignificant(true);
Iterator<Range> rangeItr = ranges.iterator();
LinkedList<Nodeid> currRangeList = null;
Range currRange = null;
boolean possiblyEmptyNextLine = true;
while (st.nextToken() != StreamTokenizer.TT_EOF) {
if (st.ttype == StreamTokenizer.TT_EOL) {
if (possiblyEmptyNextLine) {
// newline follows newline;
assert currRange == null;
assert currRangeList == null;