| 46 | } |
| 47 | |
| 48 | QString BazaarUtils::getRevisionSpecRange(const KDevelop::VcsRevision& end) |
| 49 | { |
| 50 | if (end.revisionType() == KDevelop::VcsRevision::Special) { |
| 51 | if (end.specialType() == KDevelop::VcsRevision::Head) { |
| 52 | return QStringLiteral("-r..last:1"); |
| 53 | } else if (end.specialType() == KDevelop::VcsRevision::Base) { |
| 54 | return QStringLiteral("-r..last:1"); // Workaround strange KDevelop behaviour |
| 55 | } else if (end.specialType() == KDevelop::VcsRevision::Working) { |
| 56 | return QString(); |
| 57 | } else if (end.specialType() == KDevelop::VcsRevision::Start) { |
| 58 | return QStringLiteral("-..r1"); |
| 59 | } else { |
| 60 | return QString(); // Don't know how to handle this situation |
| 61 | } |
| 62 | } else if (end.revisionType() == KDevelop::VcsRevision::GlobalNumber) { |
| 63 | return QStringLiteral("-r") + QString::number(end.revisionValue().toLongLong()); |
| 64 | } |
| 65 | |
| 66 | return QString(); // Don't know how to handle this situation |
| 67 | } |
| 68 | |
| 69 | QString BazaarUtils::getRevisionSpecRange(const KDevelop::VcsRevision& begin, |
| 70 | const KDevelop::VcsRevision& end) |
nothing calls this directly
no test coverage detected