Merge lp:~savoirfairelinux-openerp/lp-community-utils/fix-pep8-and-add-new-projects into lp:lp-community-utils

Status: Merged
Merged at revision: 19
Proposed branch: lp:~savoirfairelinux-openerp/lp-community-utils/fix-pep8-and-add-new-projects
Merge into: lp:lp-community-utils
Diff against target: 447 lines (+80/-66)
6 files modified
README.rst (+1/-1)
clone_mp_to_community.py (+43/-38)
merge_mp.py (+9/-9)
openerp-nag (+3/-3)
projects (+9/-3)
replay_missing.py (+15/-12)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/lp-community-utils/fix-pep8-and-add-new-projects
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) code review Approve
Pedro Manuel Baeza code review, no test Approve
Review via email: mp+186938@code.launchpad.net

Description of the change

[FIX] PEP8
[ADD] HR, ISP and Edition projects

To post a comment you must log in.
20. By Maxime Chambreuil (http://www.savoirfairelinux.com)

[ADD] Bazaar-extractor project

21. By Maxime Chambreuil (http://www.savoirfairelinux.com)

[IMP] Add openerp-sage-50 project

22. By Maxime Chambreuil (http://www.savoirfairelinux.com)

[IMP] Add openerp-pos project

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

Can someone review this MP please ?

Thanks.

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Hi, Maxime, can you please add the new openerp-reporting-engines repository?

The rest seems OK.

Thank you.

review: Approve (code review, no test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) :
review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README.rst'
--- README.rst 2013-01-03 08:17:37 +0000
+++ README.rst 2013-10-22 12:05:54 +0000
@@ -43,7 +43,7 @@
43Community Reviewers pool, it has to be added there.43Community Reviewers pool, it has to be added there.
4444
45If someone can contribute to automatize the build of45If someone can contribute to automatize the build of
46the projects list (if that where possible),46the projects list (if that were possible),
47that would be great.47that would be great.
4848
4949
5050
=== modified file 'clone_mp_to_community.py'
--- clone_mp_to_community.py 2013-04-24 08:13:56 +0000
+++ clone_mp_to_community.py 2013-10-22 12:05:54 +0000
@@ -1,6 +1,6 @@
1#!/usr/bin/python1#!/usr/bin/python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3##############################################################################3#
4#4#
5# OpenERP, Open Source Management Solution5# OpenERP, Open Source Management Solution
6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
@@ -20,7 +20,7 @@
20# You should have received a copy of the GNU Affero General Public License20# You should have received a copy of the GNU Affero General Public License
21# along with this program. If not, see <http://www.gnu.org/licenses/>.21# along with this program. If not, see <http://www.gnu.org/licenses/>.
22#22#
23##############################################################################23#
24import os24import os
25import os.path25import os.path
26import shutil26import shutil
@@ -41,7 +41,7 @@
4141
42load_plugins()42load_plugins()
4343
44#mapping from official projects/series to community series44# mapping from official projects/series to community series
45project_mappings = {45project_mappings = {
46 'openerp-web': {46 'openerp-web': {
47 '6.1': 'lp:ocb-web/6.1',47 '6.1': 'lp:ocb-web/6.1',
@@ -61,6 +61,8 @@
61}61}
6262
63api_base_url = 'https://api.launchpad.net/1.0/'63api_base_url = 'https://api.launchpad.net/1.0/'
64
65
64def get_lp_json(url):66def get_lp_json(url):
65 """67 """
66 Load a launchpad API request in JSON format.68 Load a launchpad API request in JSON format.
@@ -90,6 +92,7 @@
90 request = urllib2.urlopen(api_url)92 request = urllib2.urlopen(api_url)
91 return simplejson.load(request)93 return simplejson.load(request)
9294
95
93def get_project_series(lp_url):96def get_project_series(lp_url):
94 """97 """
95 Split off the lp: part (or harmlessly 'htt' in the case of http 98 Split off the lp: part (or harmlessly 'htt' in the case of http
@@ -98,6 +101,7 @@
98 parts = lp_url[3:].split('/')101 parts = lp_url[3:].split('/')
99 return (parts[-2], parts[-1])102 return (parts[-2], parts[-1])
100103
104
101def clone_merge_proposals(lp, source_branch_address,105def clone_merge_proposals(lp, source_branch_address,
102 target_branch_address=None,106 target_branch_address=None,
103 reference_branch_address=None,107 reference_branch_address=None,
@@ -126,8 +130,8 @@
126 logging.debug('Looking at possible target %s',130 logging.debug('Looking at possible target %s',
127 mp.target_branch.web_link)131 mp.target_branch.web_link)
128 project, series = get_project_series(mp.target_branch.web_link)132 project, series = get_project_series(mp.target_branch.web_link)
129 if (project in project_mappings and 133 if (project in project_mappings and
130 series in project_mappings[project]):134 series in project_mappings[project]):
131 target_branch_address = project_mappings[project][series]135 target_branch_address = project_mappings[project][series]
132 original_target_branch_address = mp.target_branch.bzr_identity136 original_target_branch_address = mp.target_branch.bzr_identity
133 break137 break
@@ -135,7 +139,7 @@
135 logging.warning('Found a proposal on an unknown project '139 logging.warning('Found a proposal on an unknown project '
136 '\'%s\' or series \'%s\'', project, series)140 '\'%s\' or series \'%s\'', project, series)
137141
138 if not mp: # i.e. there were no landing targets142 if not mp: # i.e. there were no landing targets
139 logging.error('No merge proposal found for %s',143 logging.error('No merge proposal found for %s',
140 source_branch_address)144 source_branch_address)
141 return 1145 return 1
@@ -153,11 +157,11 @@
153 logging.debug('getting %s to create merge proposal to %s',157 logging.debug('getting %s to create merge proposal to %s',
154 target_branch_address, target_branch_dir)158 target_branch_address, target_branch_dir)
155 cmd_branch().run(target_branch_address,159 cmd_branch().run(target_branch_address,
156 to_location=target_branch_dir, stacked=True, 160 to_location=target_branch_dir, stacked=True,
157 use_existing_dir=True)161 use_existing_dir=True)
158162
159 target_branch = lp_api.LaunchpadBranch.from_bzr(lp,163 target_branch = lp_api.LaunchpadBranch.from_bzr(lp,
160 Branch.open(target_branch_dir))164 Branch.open(target_branch_dir))
161165
162 replay_args = [target_branch_dir, source_branch_address]166 replay_args = [target_branch_dir, source_branch_address]
163 if reference_branch_address:167 if reference_branch_address:
@@ -165,7 +169,7 @@
165 elif original_target_branch_address:169 elif original_target_branch_address:
166 replay_args += ['-r', original_target_branch_address]170 replay_args += ['-r', original_target_branch_address]
167 logging.debug('start replay %s', replay_args)171 logging.debug('start replay %s', replay_args)
168 172
169 try:173 try:
170 replay_missing.main(replay_args)174 replay_missing.main(replay_args)
171 except ConflictsInTree:175 except ConflictsInTree:
@@ -188,7 +192,7 @@
188192
189 logging.debug('pushing to %s', push_location)193 logging.debug('pushing to %s', push_location)
190 push = cmd_push()194 push = cmd_push()
191 #TODO: because of this, bzr's output doesn't end up in our logger195 # TODO: because of this, bzr's output doesn't end up in our logger
192 push._setup_outf()196 push._setup_outf()
193 push.run(197 push.run(
194 location=push_location, directory=target_branch_dir, stacked=True)198 location=push_location, directory=target_branch_dir, stacked=True)
@@ -199,10 +203,10 @@
199 initial_comment += (' Below is a copy of the original '203 initial_comment += (' Below is a copy of the original '
200 'description.\n\n%s' % mp.description)204 'description.\n\n%s' % mp.description)
201 lp.branches.getByUrl(url=push_location).createMergeProposal(205 lp.branches.getByUrl(url=push_location).createMergeProposal(
202 commit_message=mp.commit_message,206 commit_message=mp.commit_message,
203 initial_comment=initial_comment,207 initial_comment=initial_comment,
204 needs_review=True, 208 needs_review=True,
205 target_branch=target_branch.lp)209 target_branch=target_branch.lp)
206210
207 shutil.rmtree(target_branch_dir)211 shutil.rmtree(target_branch_dir)
208 else:212 else:
@@ -210,28 +214,28 @@
210 'No target branch specified and no proposal found for %s '214 'No target branch specified and no proposal found for %s '
211 'on any mapped project and series', source_branch_address)215 'on any mapped project and series', source_branch_address)
212216
213 217
214def main(argv=None):218def main(argv=None):
215 parser = argparse.ArgumentParser()219 parser = argparse.ArgumentParser()
216 parser.add_argument('--mp-branch-dir', dest='mp_branch_dir', 220 parser.add_argument('--mp-branch-dir', dest='mp_branch_dir',
217 help="the local directory of the merge proposal\'s branch")221 help="the local directory of the merge proposal\'s branch")
218 parser.add_argument('--mp-url', dest='mp_url', 222 parser.add_argument('--mp-url', dest='mp_url',
219 help="the merge proposal's web address on launchpad")223 help="the merge proposal's web address on launchpad")
220 parser.add_argument('--reference-branch', '-r', dest='reference_branch', 224 parser.add_argument('--reference-branch', '-r', dest='reference_branch',
221 help=("Only replay commits that are not present in this branch. This "225 help=("Only replay commits that are not present in this branch. This "
222 "would usually be a local copy of the original target branch "226 "would usually be a local copy of the original target branch "
223 "of the merge proposal"))227 "of the merge proposal"))
224 parser.add_argument('--target-branch', dest='target_branch', 228 parser.add_argument('--target-branch', dest='target_branch',
225 help="override automagicly chosen target branch")229 help="override automagicly chosen target branch")
226 parser.add_argument('--target-copy', '-c',230 parser.add_argument('--target-copy', '-c',
227 help="Directory to use as a local copy of the target branch. This "231 help="Directory to use as a local copy of the target branch. This "
228 "prevents downloading the branch from Launchpad.")232 "prevents downloading the branch from Launchpad.")
229 parser.add_argument('-d', '--debug', dest='loglevel', action='store_const',233 parser.add_argument('-d', '--debug', dest='loglevel', action='store_const',
230 const='DEBUG', help='debug output')234 const='DEBUG', help='debug output')
231 parser.add_argument('-q', '--quiet', dest='loglevel', action='store_const',235 parser.add_argument('-q', '--quiet', dest='loglevel', action='store_const',
232 const='ERROR', help='be quiet')236 const='ERROR', help='be quiet')
233 arguments = parser.parse_args(argv)237 arguments = parser.parse_args(argv)
234 238
235 if arguments.loglevel:239 if arguments.loglevel:
236 logging.getLogger().setLevel(getattr(logging, arguments.loglevel))240 logging.getLogger().setLevel(getattr(logging, arguments.loglevel))
237241
@@ -266,15 +270,15 @@
266 except bzrlib.errors.NotBranchError:270 except bzrlib.errors.NotBranchError:
267 if not source_branch_location:271 if not source_branch_location:
268 logging.error('current directory is not a branch and I got no '272 logging.error('current directory is not a branch and I got no '
269 'merge proposal - giving up')273 'merge proposal - giving up')
270 return 1274 return 1
271 275
272 try:276 try:
273 clone_merge_proposals(lp, source_branch_location, 277 clone_merge_proposals(lp, source_branch_location,
274 target_branch_address=arguments.target_branch,278 target_branch_address=arguments.target_branch,
275 reference_branch_address=(arguments.reference_branch279 reference_branch_address=(arguments.reference_branch
276 or original_target_branch_location),280 or original_target_branch_location),
277 target_copy=arguments.target_copy)281 target_copy=arguments.target_copy)
278282
279 except bzrlib.errors.NotBranchError as e:283 except bzrlib.errors.NotBranchError as e:
280 logging.error('found no branch to work on - branch dir is %s',284 logging.error('found no branch to work on - branch dir is %s',
@@ -283,5 +287,6 @@
283287
284if __name__ == "__main__":288if __name__ == "__main__":
285 import sys289 import sys
286 logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)290 logging.basicConfig(
291 format='%(levelname)s: %(message)s', level=logging.INFO)
287 sys.exit(main(sys.argv[1:]))292 sys.exit(main(sys.argv[1:]))
288293
=== modified file 'merge_mp.py'
--- merge_mp.py 2013-04-24 08:19:34 +0000
+++ merge_mp.py 2013-10-22 12:05:54 +0000
@@ -1,6 +1,6 @@
1#!/usr/bin/python1#!/usr/bin/python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3##############################################################################3#
4#4#
5# OpenERP, Open Source Management Solution5# OpenERP, Open Source Management Solution
6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
@@ -20,24 +20,24 @@
20# You should have received a copy of the GNU Affero General Public License20# You should have received a copy of the GNU Affero General Public License
21# along with this program. If not, see <http://www.gnu.org/licenses/>.21# along with this program. If not, see <http://www.gnu.org/licenses/>.
22#22#
23##############################################################################23#
24import sys24import sys
25import argparse25import argparse
26import tempfile26import tempfile
27import shutil27import shutil
28import logging28import logging
29from bzrlib.builtins import (cmd_branch, cmd_push, cmd_merge, cmd_commit,29from bzrlib.builtins import (cmd_branch, cmd_push, cmd_merge, cmd_commit,
30 cmd_pull)30 cmd_pull)
31import clone_mp_to_community31import clone_mp_to_community
3232
33logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)33logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
3434
35parser = argparse.ArgumentParser()35parser = argparse.ArgumentParser()
36parser.add_argument('mp_url',36parser.add_argument('mp_url',
37 help='The URL of the merge proposal on Launchpad')37 help='The URL of the merge proposal on Launchpad')
38parser.add_argument('--target-copy', '-c',38parser.add_argument('--target-copy', '-c',
39 help='Directory to use as a local copy of the target branch.\n'39 help='Directory to use as a local copy of the target branch.\n'
40 'This prevents downloading the branch from Launchpad.')40 'This prevents downloading the branch from Launchpad.')
41parser.add_argument('--commit-message', '-m', help='Override commit message')41parser.add_argument('--commit-message', '-m', help='Override commit message')
42arguments = parser.parse_args()42arguments = parser.parse_args()
4343
@@ -47,7 +47,7 @@
4747
48if not mp['commit_message'] and not arguments.commit_message:48if not mp['commit_message'] and not arguments.commit_message:
49 print 'The merge proposal contains no commit message. '\49 print 'The merge proposal contains no commit message. '\
50 'Give one as parameter!'50 'Give one as parameter!'
51 sys.exit()51 sys.exit()
5252
53branch_dir = tempfile.mkdtemp()53branch_dir = tempfile.mkdtemp()
@@ -60,14 +60,14 @@
60 pull_command.run(directory=branch_dir)60 pull_command.run(directory=branch_dir)
61else:61else:
62 cmd_branch().run(lp_target['bzr_identity'], to_location=branch_dir,62 cmd_branch().run(lp_target['bzr_identity'], to_location=branch_dir,
63 stacked=True, use_existing_dir=True)63 stacked=True, use_existing_dir=True)
6464
65merge_command = cmd_merge()65merge_command = cmd_merge()
66merge_command._setup_outf()66merge_command._setup_outf()
67merge_command.run(lp_source['bzr_identity'], directory=branch_dir)67merge_command.run(lp_source['bzr_identity'], directory=branch_dir)
6868
69cmd_commit().run(message=arguments.commit_message or mp['commit_message'],69cmd_commit().run(message=arguments.commit_message or mp['commit_message'],
70 selected_list=[branch_dir])70 selected_list=[branch_dir])
7171
72push_command = cmd_push()72push_command = cmd_push()
73push_command._setup_outf()73push_command._setup_outf()
7474
=== modified file 'openerp-nag'
--- openerp-nag 2013-06-13 08:00:49 +0000
+++ openerp-nag 2013-10-22 12:05:54 +0000
@@ -231,15 +231,15 @@
231 logging.info("Looking for things to nag about under %s", project_name)231 logging.info("Looking for things to nag about under %s", project_name)
232 nags.extend(gen_project_nags(lp, policy, project_name))232 nags.extend(gen_project_nags(lp, policy, project_name))
233 nags.sort(key=lambda nag: (nag.sort_class, nag.sort_priority,233 nags.sort(key=lambda nag: (nag.sort_class, nag.sort_priority,
234 nag.sort_age))234 nag.sort_age))
235 print("=" * 80)235 print("=" * 80)
236 print("Done thinking, here's the nag list".center(80))236 print("Done thinking, here's the nag list".center(80))
237 print("=" * 80)237 print("=" * 80)
238 for index1, nag in enumerate(nags, 1):238 for index1, nag in enumerate(nags, 1):
239 print("{index1:-2}: [age {age}] {person} should {action} {subject} "239 print("{index1:-2}: [age {age}] {person} should {action} {subject} "
240 "on the project {project}".format(240 "on the project {project}".format(
241 index1=index1, age=(nag.sort_age and -nag.sort_age), person=nag.person,241 index1=index1, age=(nag.sort_age and -nag.sort_age), person=nag.person,
242 action=nag.action, subject=nag.subject, project=nag.project_name))242 action=nag.action, subject=nag.subject, project=nag.project_name))
243243
244244
245if __name__ == "__main__":245if __name__ == "__main__":
246246
=== modified file 'projects'
--- projects 2013-04-29 06:19:10 +0000
+++ projects 2013-10-22 12:05:54 +0000
@@ -8,6 +8,7 @@
8account-invoicing8account-invoicing
9account-payment9account-payment
10banking-addons10banking-addons
11bazaar-extractor
11carriers-deliveries12carriers-deliveries
12contract-management13contract-management
13department-mgmt14department-mgmt
@@ -18,17 +19,25 @@
18knowledge-addons19knowledge-addons
19lp-community-utils20lp-community-utils
20margin-analysis21margin-analysis
22ocb-addons
23ocb-server
24ocb-web
21oemedical25oemedical
22openerp-accountedge26openerp-accountedge
23openerp-construction27openerp-construction
28openerp-edition
24openerp-fiscal-rules29openerp-fiscal-rules
30openerp-hr
25openerp-icm31openerp-icm
32openerp-isp
26openerp-library33openerp-library
27openerp-lims-connect34openerp-lims-connect
28openerp-manufacturing35openerp-manufacturing
29openerp-mgmtsystem36openerp-mgmtsystem
37openerp-pos
30openerp-product-attributes38openerp-product-attributes
31openerp-product-variant39openerp-product-variant
40openerp-sage-50
32partner-contact-management41partner-contact-management
33product-kitting42product-kitting
34project-reporting43project-reporting
@@ -51,6 +60,3 @@
51sugarcrm-openerp60sugarcrm-openerp
52web-addons61web-addons
53webkit-utils62webkit-utils
54ocb-addons
55ocb-server
56ocb-web
5763
=== modified file 'replay_missing.py'
--- replay_missing.py 2013-04-24 08:18:30 +0000
+++ replay_missing.py 2013-10-22 12:05:54 +0000
@@ -1,6 +1,6 @@
1#!/usr/bin/python1#!/usr/bin/python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3##############################################################################3#
4#4#
5# OpenERP, Open Source Management Solution5# OpenERP, Open Source Management Solution
6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).6# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
@@ -23,7 +23,7 @@
23# You should have received a copy of the GNU Affero General Public License23# You should have received a copy of the GNU Affero General Public License
24# along with this program. If not, see <http://www.gnu.org/licenses/>.24# along with this program. If not, see <http://www.gnu.org/licenses/>.
25#25#
26##############################################################################26#
27import sys27import sys
28import argparse28import argparse
29from os.path import isdir29from os.path import isdir
@@ -33,7 +33,7 @@
33from bzrlib.errors import (33from bzrlib.errors import (
34 NoSuchRevision,34 NoSuchRevision,
35 UnknownErrorFromSmartServer,35 UnknownErrorFromSmartServer,
36 )36)
37from bzrlib.generate_ids import gen_revision_id37from bzrlib.generate_ids import gen_revision_id
38from bzrlib.option import _parse_revision_str38from bzrlib.option import _parse_revision_str
39from bzrlib.plugins.launchpad.lp_directory import LaunchpadDirectory39from bzrlib.plugins.launchpad.lp_directory import LaunchpadDirectory
@@ -41,6 +41,7 @@
41from bzrlib.workingtree import WorkingTree41from bzrlib.workingtree import WorkingTree
42import logging42import logging
4343
44
44def replay_missing(45def replay_missing(
45 wt, upstream_location, alternative_reference=False, do_nothing=False):46 wt, upstream_location, alternative_reference=False, do_nothing=False):
46 """47 """
@@ -101,12 +102,12 @@
101 finally:102 finally:
102 source.unlock()103 source.unlock()
103 return result104 return result
104 105
105 upstream = Branch.open_containing(upstream_location)[0]106 upstream = Branch.open_containing(upstream_location)[0]
106 logging.debug('finding differences')107 logging.debug('finding differences')
107 _, todo_set = find_difference(wt.branch, upstream)108 _, todo_set = find_difference(wt.branch, upstream)
108 logging.debug("%s revisions not in the reference branch", len(todo_set))109 logging.debug("%s revisions not in the reference branch", len(todo_set))
109 110
110 if alternative_reference:111 if alternative_reference:
111 _, wt_todo_set = find_difference(wt.branch, alternative_reference)112 _, wt_todo_set = find_difference(wt.branch, alternative_reference)
112 todo_set = todo_set.difference(wt_todo_set)113 todo_set = todo_set.difference(wt_todo_set)
@@ -136,14 +137,15 @@
136 revno, upstream_location, revid)137 revno, upstream_location, revid)
137 if not do_nothing:138 if not do_nothing:
138 revisionspec = _parse_revision_str(139 revisionspec = _parse_revision_str(
139 "%s..%s" % (int(revno) -1, int(revno)))140 "%s..%s" % (int(revno) - 1, int(revno)))
140 cmd_merge().run(location=upstream.base,141 cmd_merge().run(location=upstream.base,
141 revision=revisionspec,142 revision=revisionspec,
142 directory=wt.branch.base) 143 directory=wt.branch.base)
143 oldrev = wt.branch.repository.get_revision(revid)144 oldrev = wt.branch.repository.get_revision(revid)
144 revid = gen_revision_id(oldrev.committer, oldrev.timestamp)145 revid = gen_revision_id(oldrev.committer, oldrev.timestamp)
145 commit_missing(wt, oldrev, revid)146 commit_missing(wt, oldrev, revid)
146147
148
147def main(argv):149def main(argv):
148 parser = argparse.ArgumentParser()150 parser = argparse.ArgumentParser()
149 parser.add_argument(151 parser.add_argument(
@@ -158,7 +160,7 @@
158 help='Log level (default is \'INFO\')')160 help='Log level (default is \'INFO\')')
159 parser.add_argument('wt_directory', help='local branch or checkout')161 parser.add_argument('wt_directory', help='local branch or checkout')
160 parser.add_argument('upstream_branches', nargs='+',162 parser.add_argument('upstream_branches', nargs='+',
161 help='upstream branch', metavar='upstream_branch')163 help='upstream branch', metavar='upstream_branch')
162164
163 arguments = parser.parse_args(argv)165 arguments = parser.parse_args(argv)
164166
@@ -173,9 +175,9 @@
173 reference = Branch.open(arguments.reference)175 reference = Branch.open(arguments.reference)
174 if reference.get_master_branch():176 if reference.get_master_branch():
175 sys.exit("%s is a bound branch. Please unbind\n" %177 sys.exit("%s is a bound branch. Please unbind\n" %
176 arguments.reference)178 arguments.reference)
177 if isinstance(transport.get_transport(arguments.reference),179 if isinstance(transport.get_transport(arguments.reference),
178 transport.local.LocalTransport):180 transport.local.LocalTransport):
179 logging.debug('pulling %s to %s',181 logging.debug('pulling %s to %s',
180 reference.get_parent(),182 reference.get_parent(),
181 reference.base)183 reference.base)
@@ -195,5 +197,6 @@
195 do_nothing=arguments.do_nothing)197 do_nothing=arguments.do_nothing)
196198
197if __name__ == "__main__":199if __name__ == "__main__":
198 logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)200 logging.basicConfig(
201 format='%(levelname)s: %(message)s', level=logging.INFO)
199 sys.exit(main(sys.argv[1:]))202 sys.exit(main(sys.argv[1:]))

Subscribers

People subscribed via source and target branches