From 450702a232bf07a82c6ac74fe28dc7bc9cffe67c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2015 16:14:33 +0200 Subject: Add ignore_revision to version::string() --- bpkg/manifest | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bpkg/manifest') diff --git a/bpkg/manifest b/bpkg/manifest index 0bbb0dc..35ff650 100644 --- a/bpkg/manifest +++ b/bpkg/manifest @@ -68,13 +68,7 @@ namespace bpkg canonical_upstream () const noexcept {return canonical_upstream_;} std::string - string () const - { - const std::string& v ( - epoch_ != 0 ? std::to_string (epoch_) + "+" + upstream_ : upstream_); - - return revision_ != 0 ? v + "-" + std::to_string (revision_) : v; - } + string (bool ignore_revision = false) const; bool operator< (const version& v) const noexcept {return compare (v) < 0;} -- cgit v1.1