B:BD[
2.40822] → [
2.40822:42506]
let to_rev = versions.pop();
match to_rev {
None => self.make_changelog_for(
&config,
&mut writer,
&helper,
&from_rev,
&Rev("", None),
)?,
Some(tav) => {
let mut rev = tav.into();
self.make_changelog_for(&config, &mut writer, &helper, &from_rev, &rev)?;
loop {
let from_rev = rev;
match versions.pop() {
None => {
self.make_changelog_for(
&config,
&mut writer,
&helper,
&from_rev,
&Rev("", None),
)?;
break;
}
Some(tav) => {
rev = tav.into();
self.make_changelog_for(
&config,
&mut writer,
&helper,
&from_rev,
&rev,
)?;
}
}
}
}
let iter: Vec<Rev<'_>> = Some(from_rev)
.into_iter()
.chain(helper.versions_from(&v).into_iter().rev().map(|v| v.into()))
.chain(Some(Rev("", None)))
.collect();
for w in iter.windows(2) {
let from = &w[0];
let to = &w[1];
let context = transformer.transform(from, to)?;
writer.write_template(&context)?;