| 27 | } |
| 28 | |
| 29 | QString BazaarUtils::getRevisionSpec(const KDevelop::VcsRevision& revision) |
| 30 | { |
| 31 | if (revision.revisionType() == KDevelop::VcsRevision::Special) { |
| 32 | if (revision.specialType() == KDevelop::VcsRevision::Head) |
| 33 | return QStringLiteral("-rlast:1"); |
| 34 | else if (revision.specialType() == KDevelop::VcsRevision::Base) |
| 35 | return QString(); // Workaround strange KDevelop behaviour |
| 36 | else if (revision.specialType() == KDevelop::VcsRevision::Working) |
| 37 | return QString(); |
| 38 | else if (revision.specialType() == KDevelop::VcsRevision::Start) |
| 39 | return QStringLiteral("-r1"); |
| 40 | else |
| 41 | return QString(); // Don't know how to handle this situation |
| 42 | } else if (revision.revisionType() == KDevelop::VcsRevision::GlobalNumber) |
| 43 | return QLatin1String("-r") + QString::number(revision.revisionValue().toLongLong()); |
| 44 | else |
| 45 | return QString(); // Don't know how to handle this situation |
| 46 | } |
| 47 | |
| 48 | QString BazaarUtils::getRevisionSpecRange(const KDevelop::VcsRevision& end) |
| 49 | { |
nothing calls this directly
no test coverage detected