Commit f2bf230b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Make revision intervals a little safer.

parent 316895ed
......@@ -130,8 +130,16 @@ QString revisionInterval(const KDevelop::VcsRevision& rev, const KDevelop::VcsRe
rev.revisionValue().value<VcsRevision::RevisionSpecialType>()==VcsRevision::Start) //if we want it to the begining just put the revisionInterval
ret = toRevisionName(limit, QString());
else {
QString dstRevisionName = toRevisionName(limit);
ret = toRevisionName(rev, dstRevisionName)+".."+dstRevisionName;
QString dst = toRevisionName(limit);
if(dst.isEmpty())
ret = dst;
else {
QString src = toRevisionName(rev, dst);
if(src.isEmpty())
ret = src;
else
ret = src+".."+dst;
}
}
// qDebug() << "=======>" << ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment