[Pkg-xen-changes] [xen] 01/04: genorig: Remove mercurial support
Bastian Blank
waldi at moszumanska.debian.org
Sun Sep 7 08:58:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
waldi pushed a commit to branch develop
in repository xen.
commit 9f19ebec89c5328d9c151008a2e77e721e66c6cc
Author: Bastian Blank <waldi at debian.org>
Date: Sun Sep 7 10:41:56 2014 +0200
genorig: Remove mercurial support
---
debian/bin/genorig.py | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py
index 9dbe866..9f9d961 100755
--- a/debian/bin/genorig.py
+++ b/debian/bin/genorig.py
@@ -12,17 +12,6 @@ from debian_xen.debian import VersionXen
from debian_linux.debian import Changelog
-class RepoHg(object):
- def __init__(self, repo, options):
- self.repo = repo
- self.tag = options.tag or 'tip'
-
- def do_archive(self, info):
- orig_dir = os.path.join(info.temp_dir, info.orig_dir)
- args = ('hg', 'archive', '-r', self.tag, os.path.realpath(orig_dir))
- subprocess.check_call(args, cwd=self.repo)
-
-
class RepoGit(object):
def __init__(self, repo, options):
self.repo = repo
@@ -57,9 +46,7 @@ class Main(object):
if options.tag is None:
options.tag = 'RELEASE-' + self.version.upstream
- if os.path.exists(os.path.join(repo, '.hg')):
- self.repo = RepoHg(repo, options)
- elif os.path.exists(os.path.join(repo, '.git')):
+ if os.path.exists(os.path.join(repo, '.git')):
self.repo = RepoGit(repo, options)
else:
raise NotImplementedError
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git
More information about the Pkg-xen-changes
mailing list