summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-25 12:23:28 +0200
committerGuido Günther <agx@sigxcpu.org>2011-10-26 09:45:10 +0200
commit237102516ef350b7a5048f706ce49221862d17be (patch)
tree5f9a13953e117acd129da8c4b4c0086ce6d74bcc /gbp
parent55d20749f56b8ec54cc80077529b0f41d5dd7e8c (diff)
GitRepository: Rename remove_tag() to delete_tag()
to be consistent with delete_branch()
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/gbp/git.py b/gbp/git.py
index e1698a8..83f0505 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -267,14 +267,19 @@ class GitRepository(object):
return None
- def remove_tag(self, tag):
- """remove a tag 'tag'"""
+ def delete_tag(self, tag):
+ """
+ Delete a tag named I{tag}
+
+ @param tag: the tag to delete
+ @type tag: string
+ """
if self.has_tag(tag):
self._git_command("tag", [ "-d", tag ])
def move_tag(self, old, new):
self._git_command("tag", [ new, old ])
- self.remove_tag(old)
+ self.delete_tag(old)
def create_tag(self, name, msg=None, commit=None, sign=False, keyid=None):
"""