diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-12-28 09:31:51 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-12-28 10:00:34 +0100 |
commit | 6850005ea0652a314a154e978f3dbe793801d57c (patch) | |
tree | fb7034caf04ceafc1c301fd8d15e5a1c43f1eff9 /gbp/git/repository.py | |
parent | 95f46f09eab66acd7d29ef55b855378ab87c56a8 (diff) |
Move _build_legacty_tag from GitRepository to to DebianGitRepository
and add doctest.
Git-Dch: Ignore
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r-- | gbp/git/repository.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 58d67bec..0cd9c0f1 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -423,13 +423,6 @@ class GitRepository(object): out, ret = self.__git_getoutput('tag', [ '-l', tag ]) return [ False, True ][len(out)] - def _build_legacy_tag(self, format, version): - """legacy version numbering""" - if ':' in version: # strip of any epochs - version = version.split(':', 1)[1] - version = version.replace('~', '.') - return format % dict(version=version) - def find_tag(self, commit, pattern=None): """ Find the closest tag to a given commit |