summaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-12-04 13:24:00 +0100
committerGuido Günther <agx@sigxcpu.org>2011-12-16 23:58:29 +0100
commite838a41a671f910b2c8052e4240e42d727a9b473 (patch)
tree619697c47daa434734d74c805412dbab9d212219 /gbp/scripts/dch.py
parentbaeee74502b8ff905e78155176d57a0291f318bd (diff)
downloadgit-buildpackage-e838a41a671f910b2c8052e4240e42d727a9b473.tar.gz
git-buildpackage-e838a41a671f910b2c8052e4240e42d727a9b473.tar.bz2
git-buildpackage-e838a41a671f910b2c8052e4240e42d727a9b473.zip
Move debian specific functions from GitRepository to DebianGitRepository
Diffstat (limited to 'gbp/scripts/dch.py')
-rw-r--r--gbp/scripts/dch.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index b502e216..1a4a6c08 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -26,10 +26,10 @@ import subprocess
import gbp.command_wrappers as gbpc
import gbp.dch as dch
import gbp.log
-from gbp.git import (GitRepositoryError, GitRepository, build_tag, tag_to_version)
from gbp.config import GbpOptionParser, GbpOptionGroup
from gbp.errors import GbpError
from gbp.deb import compare_versions
+from gbp.deb.git import GitRepositoryError, DebianGitRepository
from gbp.deb.changelog import ChangeLog, NoChangeLogError
user_customizations = {}
@@ -110,7 +110,7 @@ def add_changelog_section(msg, distribution, repo, options, cp,
pattern = options.upstream_tag.replace('%(version)s', '*')
try:
tag = repo.find_tag('HEAD', pattern=pattern)
- upstream = tag_to_version(tag, options.upstream_tag)
+ upstream = repo.tag_to_version(tag, options.upstream_tag)
if upstream:
gbp.log.debug("Found %s." % upstream)
new_version = "%s-1" % upstream
@@ -379,7 +379,7 @@ def main(argv):
try:
try:
- repo = GitRepository('.')
+ repo = DebianGitRepository('.')
except GitRepositoryError:
raise GbpError, "%s is not a git repository" % (os.path.abspath('.'))