From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/vcs/, pym/repoman/modules/vcs/hg/, ...
Date: Sun, 7 Feb 2016 18:55:28 +0000 (UTC) [thread overview]
Message-ID: <1454871021.ce233f472c693d2249a0ae41d9b00f7b4dbb9cc9.dolsen@gentoo> (raw)
commit: ce233f472c693d2249a0ae41d9b00f7b4dbb9cc9
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 7 18:50:21 2016 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun Feb 7 18:50:21 2016 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ce233f47
repoman: Add repo_settings to VCSSettings class and the Changes classes
Needed for more code migration from atcions.py to the vcs modules.
pym/repoman/main.py | 4 ++++
pym/repoman/modules/vcs/None/changes.py | 4 ++--
pym/repoman/modules/vcs/bzr/changes.py | 4 ++--
pym/repoman/modules/vcs/changes.py | 4 +++-
pym/repoman/modules/vcs/cvs/changes.py | 4 ++--
pym/repoman/modules/vcs/git/changes.py | 4 ++--
pym/repoman/modules/vcs/hg/changes.py | 4 ++--
pym/repoman/modules/vcs/svn/changes.py | 4 ++--
8 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/pym/repoman/main.py b/pym/repoman/main.py
index 6921005..337e638 100755
--- a/pym/repoman/main.py
+++ b/pym/repoman/main.py
@@ -84,6 +84,7 @@ def repoman_main(argv):
myreporoot = os.path.basename(portdir_overlay)
myreporoot += mydir[len(portdir_overlay):]
+ # avoid a circular parameter repo_settings
vcs_settings = VCSSettings(options, repoman_settings)
repo_settings = RepoSettings(
@@ -91,6 +92,9 @@ def repoman_main(argv):
repoman_settings, vcs_settings, options, qawarnings)
repoman_settings = repo_settings.repoman_settings
+ # Now set repo_settings
+ vcs_settings.repo_settings = repo_settings
+
if 'digest' in repoman_settings.features and options.digest != 'n':
options.digest = 'y'
diff --git a/pym/repoman/modules/vcs/None/changes.py b/pym/repoman/modules/vcs/None/changes.py
index 759b554..37693ad 100644
--- a/pym/repoman/modules/vcs/None/changes.py
+++ b/pym/repoman/modules/vcs/None/changes.py
@@ -12,12 +12,12 @@ class Changes(ChangesBase):
vcs = 'None'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
def scan(self):
'''VCS type scan function, looks for all detectable changes'''
diff --git a/pym/repoman/modules/vcs/bzr/changes.py b/pym/repoman/modules/vcs/bzr/changes.py
index 519d311..9bd0646 100644
--- a/pym/repoman/modules/vcs/bzr/changes.py
+++ b/pym/repoman/modules/vcs/bzr/changes.py
@@ -13,12 +13,12 @@ class Changes(ChangesBase):
vcs = 'bzr'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
def _scan(self):
'''VCS type scan function, looks for all detectable changes'''
diff --git a/pym/repoman/modules/vcs/changes.py b/pym/repoman/modules/vcs/changes.py
index 1745a65..921e9b5 100644
--- a/pym/repoman/modules/vcs/changes.py
+++ b/pym/repoman/modules/vcs/changes.py
@@ -13,8 +13,10 @@ class ChangesBase(object):
vcs = 'None'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
self.options = options
+ self.repo_settings = repo_settings
+ self.repoman_settings = repo_settings.repoman_settings
self._reset()
def _reset(self):
diff --git a/pym/repoman/modules/vcs/cvs/changes.py b/pym/repoman/modules/vcs/cvs/changes.py
index 061486f..5fc9642 100644
--- a/pym/repoman/modules/vcs/cvs/changes.py
+++ b/pym/repoman/modules/vcs/cvs/changes.py
@@ -16,12 +16,12 @@ class Changes(ChangesBase):
vcs = 'cvs'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
self._tree = None
def _scan(self):
diff --git a/pym/repoman/modules/vcs/git/changes.py b/pym/repoman/modules/vcs/git/changes.py
index d0b6acd..f159298 100644
--- a/pym/repoman/modules/vcs/git/changes.py
+++ b/pym/repoman/modules/vcs/git/changes.py
@@ -13,12 +13,12 @@ class Changes(ChangesBase):
vcs = 'git'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
def _scan(self):
'''VCS type scan function, looks for all detectable changes'''
diff --git a/pym/repoman/modules/vcs/hg/changes.py b/pym/repoman/modules/vcs/hg/changes.py
index 9729085..311ca12 100644
--- a/pym/repoman/modules/vcs/hg/changes.py
+++ b/pym/repoman/modules/vcs/hg/changes.py
@@ -13,12 +13,12 @@ class Changes(ChangesBase):
vcs = 'hg'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
def _scan(self):
'''VCS type scan function, looks for all detectable changes'''
diff --git a/pym/repoman/modules/vcs/svn/changes.py b/pym/repoman/modules/vcs/svn/changes.py
index 6b25a21..ffe19c1 100644
--- a/pym/repoman/modules/vcs/svn/changes.py
+++ b/pym/repoman/modules/vcs/svn/changes.py
@@ -13,12 +13,12 @@ class Changes(ChangesBase):
vcs = 'svn'
- def __init__(self, options):
+ def __init__(self, options, repo_settings):
'''Class init
@param options: commandline options
'''
- super(Changes, self).__init__(options)
+ super(Changes, self).__init__(options, repo_settings)
def _scan(self):
'''VCS type scan function, looks for all detectable changes'''
next reply other threads:[~2016-02-07 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-07 18:55 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-03-11 0:41 [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/vcs/, pym/repoman/modules/vcs/hg/, Brian Dolbec
2016-04-21 16:54 Brian Dolbec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454871021.ce233f472c693d2249a0ae41d9b00f7b4dbb9cc9.dolsen@gentoo \
--to=dolsen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox