Ticket #1120: same-argv-and-output-encoding-withdarcsreplace.darcs.patch

File same-argv-and-output-encoding-withdarcsreplace.darcs.patch, 29.2 KB (added by zooko, at 2011-07-27T19:40:56Z)
Line 
11 patch for repository /home/zooko/playground/tahoe-lafs/pristine:
2
3Wed Jul 27 13:09:33 MDT 2011  zooko@zooko.com
4  * encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
5  Original patch written by David-Sarah, this version of it recast to use "darcs replace" by Zooko.
6
7New patches:
8
9[encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
10zooko@zooko.com**20110727190933
11 Ignore-this: 98adb7ff88078035119b5d2ba9ae6ec7
12 Original patch written by David-Sarah, this version of it recast to use "darcs replace" by Zooko.
13] {
14replace ./src/allmydata/scripts/runner.py [A-Za-z_0-9] get_argv_encoding get_io_encoding
15hunk ./src/allmydata/test/test_cli.py 35
16 
17 from allmydata.util.assertutil import precondition
18 from allmydata.util.encodingutil import listdir_unicode, unicode_platform, \
19-    quote_output, get_output_encoding, get_argv_encoding, get_filesystem_encoding, \
20+    quote_output, get_output_encoding, get_filesystem_encoding, \
21     unicode_to_output, unicode_to_argv, to_str
22 from allmydata.util.fileutil import abspath_expanduser_unicode
23 
24hunk ./src/allmydata/test/test_cli.py 654
25         self.set_up_grid()
26 
27         try:
28-            etudes_arg = u"\u00E9tudes".encode(get_argv_encoding())
29-            lumiere_arg = u"lumi\u00E8re.txt".encode(get_argv_encoding())
30+            etudes_arg = u"\u00E9tudes".encode(get_output_encoding())
31+            lumiere_arg = u"lumi\u00E8re.txt".encode(get_output_encoding())
32         except UnicodeEncodeError:
33             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
34 
35hunk ./src/allmydata/test/test_cli.py 983
36         # tahoe put "\u00E0 trier.txt" "\u00E0 trier.txt"
37 
38         try:
39-            a_trier_arg = u"\u00E0 trier.txt".encode(get_argv_encoding())
40+            a_trier_arg = u"\u00E0 trier.txt".encode(get_output_encoding())
41         except UnicodeEncodeError:
42             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
43 
44hunk ./src/allmydata/test/test_cli.py 1000
45         d = self.do_cli("create-alias", "tahoe")
46 
47         d.addCallback(lambda res:
48-                      self.do_cli("put", rel_fn.encode(get_argv_encoding()), a_trier_arg))
49+                      self.do_cli("put", rel_fn.encode(get_output_encoding()), a_trier_arg))
50         def _uploaded((rc, out, err)):
51             readcap = out.strip()
52             self.failUnless(readcap.startswith("URI:LIT:"), readcap)
53hunk ./src/allmydata/test/test_cli.py 1025
54         # u"g\u00F6\u00F6d" might not be representable in the argv and/or output encodings.
55         # It is initially included in the directory in any case.
56         try:
57-            good_arg = u"g\u00F6\u00F6d".encode(get_argv_encoding())
58+            good_arg = u"g\u00F6\u00F6d".encode(get_output_encoding())
59         except UnicodeEncodeError:
60             good_arg = None
61 
62hunk ./src/allmydata/test/test_cli.py 1396
63 
64         fn1 = os.path.join(unicode(self.basedir), u"\u00C4rtonwall")
65         try:
66-            fn1_arg = fn1.encode(get_argv_encoding())
67-            artonwall_arg = u"\u00C4rtonwall".encode(get_argv_encoding())
68+            fn1_arg = fn1.encode(get_output_encoding())
69+            artonwall_arg = u"\u00C4rtonwall".encode(get_output_encoding())
70         except UnicodeEncodeError:
71             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
72 
73hunk ./src/allmydata/test/test_cli.py 1553
74 
75         fn1 = os.path.join(unicode(self.basedir), u"\u00C4rtonwall")
76         try:
77-            fn1_arg = fn1.encode(get_argv_encoding())
78+            fn1_arg = fn1.encode(get_output_encoding())
79             del fn1_arg # hush pyflakes
80hunk ./src/allmydata/test/test_cli.py 1555
81-            artonwall_arg = u"\u00C4rtonwall".encode(get_argv_encoding())
82+            artonwall_arg = u"\u00C4rtonwall".encode(get_output_encoding())
83         except UnicodeEncodeError:
84             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
85 
86hunk ./src/allmydata/test/test_cli.py 1885
87     def test_exclude_options_unicode(self):
88         nice_doc = u"nice_d\u00F8c.lyx"
89         try:
90-            doc_pattern_arg = u"*d\u00F8c*".encode(get_argv_encoding())
91+            doc_pattern_arg = u"*d\u00F8c*".encode(get_output_encoding())
92         except UnicodeEncodeError:
93             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
94 
95hunk ./src/allmydata/test/test_cli.py 2520
96         self.set_up_grid()
97 
98         try:
99-            motorhead_arg = u"tahoe:Mot\u00F6rhead".encode(get_argv_encoding())
100+            motorhead_arg = u"tahoe:Mot\u00F6rhead".encode(get_output_encoding())
101         except UnicodeEncodeError:
102             raise unittest.SkipTest("A non-ASCII command argument could not be encoded on this platform.")
103 
104replace ./src/allmydata/test/test_cli.py [A-Za-z_0-9] get_argv_encoding get_io_encoding
105replace ./src/allmydata/test/test_cli.py [A-Za-z_0-9] get_output_encoding get_io_encoding
106hunk ./src/allmydata/test/test_encodingutil.py 40
107     print "    platform = '%s'" % sys.platform
108     print "    filesystem_encoding = '%s'" % sys.getfilesystemencoding()
109     print "    output_encoding = '%s'" % sys.stdout.encoding
110-    print "    argv_encoding = '%s'" % sys.stdout.encoding
111     try:
112         tmpdir = tempfile.mkdtemp()
113         for fname in TEST_FILENAMES:
114replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] get_output_encoding get_io_encoding
115hunk ./src/allmydata/test/test_encodingutil.py 67
116 from allmydata.util import encodingutil
117 from allmydata.util.encodingutil import argv_to_unicode, unicode_to_url, \
118     unicode_to_output, quote_output, unicode_platform, listdir_unicode, \
119-    FilenameEncodingError, get_io_encoding, get_filesystem_encoding, _reload
120+    FilenameEncodingError, get_output_encoding, get_filesystem_encoding, _reload
121 from allmydata.dirnode import normalize
122 
123 from twisted.python import usage
124hunk ./src/allmydata/test/test_encodingutil.py 78
125     def test_get_output_encoding(self, mock_stdout):
126         mock_stdout.encoding = 'UTF-8'
127         _reload()
128-        self.failUnlessReallyEqual(get_io_encoding(), 'utf-8')
129+        self.failUnlessReallyEqual(get_output_encoding(), 'utf-8')
130 
131         mock_stdout.encoding = 'cp65001'
132         _reload()
133hunk ./src/allmydata/test/test_encodingutil.py 82
134-        self.failUnlessReallyEqual(get_io_encoding(), 'utf-8')
135+        self.failUnlessReallyEqual(get_output_encoding(), 'utf-8')
136 
137         mock_stdout.encoding = 'koi8-r'
138         expected = sys.platform == "win32" and 'utf-8' or 'koi8-r'
139hunk ./src/allmydata/test/test_encodingutil.py 87
140         _reload()
141-        self.failUnlessReallyEqual(get_io_encoding(), expected)
142+        self.failUnlessReallyEqual(get_output_encoding(), expected)
143 
144         mock_stdout.encoding = 'nonexistent_encoding'
145         if sys.platform == "win32":
146hunk ./src/allmydata/test/test_encodingutil.py 92
147             _reload()
148-            self.failUnlessReallyEqual(get_io_encoding(), 'utf-8')
149+            self.failUnlessReallyEqual(get_output_encoding(), 'utf-8')
150         else:
151             self.failUnlessRaises(AssertionError, _reload)
152 
153hunk ./src/allmydata/test/test_encodingutil.py 108
154         try:
155             expected = sys.platform == "win32" and 'utf-8' or 'koi8-r'
156             _reload()
157-            self.failUnlessReallyEqual(get_io_encoding(), expected)
158+            self.failUnlessReallyEqual(get_output_encoding(), expected)
159 
160             sys.stdout.encoding = None
161             _reload()
162hunk ./src/allmydata/test/test_encodingutil.py 112
163-            self.failUnlessReallyEqual(get_io_encoding(), expected)
164+            self.failUnlessReallyEqual(get_output_encoding(), expected)
165 
166             mock_locale_getpreferredencoding.return_value = None
167             _reload()
168hunk ./src/allmydata/test/test_encodingutil.py 116
169-            self.failUnlessReallyEqual(get_io_encoding(), 'utf-8')
170+            self.failUnlessReallyEqual(get_output_encoding(), 'utf-8')
171         finally:
172             sys.stdout = old_stdout
173 
174hunk ./src/allmydata/test/test_encodingutil.py 121
175     def test_argv_to_unicode(self):
176-        encodingutil.argv_encoding = 'utf-8'
177+        encodingutil.output_encoding = 'utf-8'
178         self.failUnlessRaises(usage.UsageError,
179                               argv_to_unicode,
180                               lumiere_nfc.encode('latin1'))
181hunk ./src/allmydata/test/test_encodingutil.py 396
182     platform = 'linux2'
183     filesystem_encoding = 'UTF-8'
184     output_encoding = 'UTF-8'
185-    argv_encoding = 'UTF-8'
186     dirlist = ['test_file', '\xc3\x84rtonwall.mp3', 'Blah blah.txt']
187 
188 class UbuntuKarmicLatin1(EncodingUtil, unittest.TestCase):
189hunk ./src/allmydata/test/test_encodingutil.py 404
190     platform = 'linux2'
191     filesystem_encoding = 'ISO-8859-1'
192     output_encoding = 'ISO-8859-1'
193-    argv_encoding = 'ISO-8859-1'
194     dirlist = ['test_file', 'Blah blah.txt', '\xc4rtonwall.mp3']
195 
196 class Windows(EncodingUtil, unittest.TestCase):
197hunk ./src/allmydata/test/test_encodingutil.py 412
198     platform = 'win32'
199     filesystem_encoding = 'mbcs'
200     output_encoding = 'utf-8'
201-    argv_encoding = 'utf-8'
202     dirlist = [u'Blah blah.txt', u'test_file', u'\xc4rtonwall.mp3']
203 
204 class MacOSXLeopard(EncodingUtil, unittest.TestCase):
205hunk ./src/allmydata/test/test_encodingutil.py 420
206     platform = 'darwin'
207     filesystem_encoding = 'utf-8'
208     output_encoding = 'UTF-8'
209-    argv_encoding = 'UTF-8'
210     dirlist = [u'A\u0308rtonwall.mp3', u'Blah blah.txt', u'test_file']
211 
212 class MacOSXLeopard7bit(EncodingUtil, unittest.TestCase):
213hunk ./src/allmydata/test/test_encodingutil.py 427
214     platform = 'darwin'
215     filesystem_encoding = 'utf-8'
216     output_encoding = 'US-ASCII'
217-    argv_encoding = 'US-ASCII'
218     dirlist = [u'A\u0308rtonwall.mp3', u'Blah blah.txt', u'test_file']
219 
220 class OpenBSD(EncodingUtil, unittest.TestCase):
221hunk ./src/allmydata/test/test_encodingutil.py 434
222     platform = 'openbsd4'
223     filesystem_encoding = '646'
224     output_encoding = '646'
225-    argv_encoding = '646'
226     # Oops, I cannot write filenames containing non-ascii characters
227replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] argv_encoding io_encoding
228replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] get_output_encoding get_io_encoding
229replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] output_encoding io_encoding
230replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] test_get_output_encoding test_get_io_encoding
231replace ./src/allmydata/test/test_encodingutil.py [A-Za-z_0-9] test_get_output_encoding_not_from_stdout test_get_io_encoding_not_from_stdout
232hunk ./src/allmydata/util/encodingutil.py 38
233 
234 filesystem_encoding = None
235 output_encoding = None
236-argv_encoding = None
237 is_unicode_platform = False
238 
239 def _reload():
240hunk ./src/allmydata/util/encodingutil.py 41
241-    global filesystem_encoding, output_encoding, argv_encoding, is_unicode_platform
242+    global filesystem_encoding, output_encoding, is_unicode_platform
243 
244     filesystem_encoding = canonical_encoding(sys.getfilesystemencoding())
245     check_encoding(filesystem_encoding)
246hunk ./src/allmydata/util/encodingutil.py 62
247         output_encoding = canonical_encoding(outenc)
248 
249     check_encoding(output_encoding)
250-    argv_encoding = output_encoding
251 
252     is_unicode_platform = sys.platform in ["win32", "darwin"]
253 
254hunk ./src/allmydata/util/encodingutil.py 76
255 
256 def get_output_encoding():
257     """
258-    Returns expected encoding for writing to stdout or stderr.
259+    Returns expected encoding for writing to stdout or stderr, and for arguments in sys.argv.
260     """
261     return output_encoding
262 
263hunk ./src/allmydata/util/encodingutil.py 80
264-def get_argv_encoding():
265-    """
266-    Returns expected encoding for command-line arguments.
267-    """
268-    return argv_encoding
269-
270 def argv_to_unicode(s):
271     """
272     Decode given argv element to unicode. If this fails, raise a UsageError.
273hunk ./src/allmydata/util/encodingutil.py 87
274     precondition(isinstance(s, str), s)
275 
276     try:
277-        return unicode(s, argv_encoding)
278+        return unicode(s, output_encoding)
279     except UnicodeDecodeError:
280         raise usage.UsageError("Argument %s cannot be decoded as %s." %
281hunk ./src/allmydata/util/encodingutil.py 90
282-                               (quote_output(s), argv_encoding))
283+                               (quote_output(s), output_encoding))
284 
285 def argv_to_abspath(s):
286     """
287hunk ./src/allmydata/util/encodingutil.py 112
288         # This must be the same as 'mangle' in bin/tahoe-script.template.
289         return str(re.sub(ur'[^\x20-\x7F]', lambda m: u'\x7F%x;' % (ord(m.group(0)),), s))
290     else:
291-        return s.encode(argv_encoding)
292+        return s.encode(output_encoding)
293 
294 def unicode_to_url(s):
295     """
296replace ./src/allmydata/util/encodingutil.py [A-Za-z_0-9] argv_encoding io_encoding
297replace ./src/allmydata/util/encodingutil.py [A-Za-z_0-9] get_argv_encoding get_io_encoding
298replace ./src/allmydata/util/encodingutil.py [A-Za-z_0-9] get_output_encoding get_io_encoding
299replace ./src/allmydata/util/encodingutil.py [A-Za-z_0-9] outenc ioenc
300replace ./src/allmydata/util/encodingutil.py [A-Za-z_0-9] output_encoding io_encoding
301}
302
303Context:
304
305[docs/man/tahoe.1: add man page. fixes #1420
306david-sarah@jacaranda.org**20110724171728
307 Ignore-this: fc7601ec7f25494288d6141d0ae0004c
308]
309[Update the dependency on zope.interface to fix an incompatiblity between Nevow and zope.interface 3.6.4. fixes #1435
310david-sarah@jacaranda.org**20110721234941
311 Ignore-this: 2ff3fcfc030fca1a4d4c7f1fed0f2aa9
312]
313[frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it.
314david-sarah@jacaranda.org**20110722000320
315 Ignore-this: 55cd558b791526113db3f83c00ec328a
316]
317[Update the dependency on Twisted to >= 10.1. This allows us to simplify some documentation: it's no longer necessary to install pywin32 on Windows, or apply a patch to Twisted in order to use the FTP frontend. fixes #1274, #1438. refs #1429
318david-sarah@jacaranda.org**20110721233658
319 Ignore-this: 81b41745477163c9b39c0b59db91cc62
320]
321[misc/build_helpers/run_trial.py: undo change to block pywin32 (it didn't work because run_trial.py is no longer used). refs #1334
322david-sarah@jacaranda.org**20110722035402
323 Ignore-this: 5d03f544c4154f088e26c7107494bf39
324]
325[misc/build_helpers/run_trial.py: ensure that pywin32 is not on the sys.path when running the test suite. Includes some temporary debugging printouts that will be removed. refs #1334
326david-sarah@jacaranda.org**20110722024907
327 Ignore-this: 5141a9f83a4085ed4ca21f0bbb20bb9c
328]
329[docs/running.rst: use 'tahoe run ~/.tahoe' instead of 'tahoe run' (the default is the current directory, unlike 'tahoe start').
330david-sarah@jacaranda.org**20110718005949
331 Ignore-this: 81837fbce073e93d88a3e7ae3122458c
332]
333[docs/running.rst: say to put the introducer.furl in tahoe.cfg.
334david-sarah@jacaranda.org**20110717194315
335 Ignore-this: 954cc4c08e413e8c62685d58ff3e11f3
336]
337[README.txt: say that quickstart.rst is in the docs directory.
338david-sarah@jacaranda.org**20110717192400
339 Ignore-this: bc6d35a85c496b77dbef7570677ea42a
340]
341[setup: remove the dependency on foolscap's "secure_connections" extra, add a dependency on pyOpenSSL
342zooko@zooko.com**20110717114226
343 Ignore-this: df222120d41447ce4102616921626c82
344 fixes #1383
345]
346[test_sftp.py cleanup: remove a redundant definition of failUnlessReallyEqual.
347david-sarah@jacaranda.org**20110716181813
348 Ignore-this: 50113380b368c573f07ac6fe2eb1e97f
349]
350[docs: add missing link in NEWS.rst
351zooko@zooko.com**20110712153307
352 Ignore-this: be7b7eb81c03700b739daa1027d72b35
353]
354[contrib: remove the contributed fuse modules and the entire contrib/ directory, which is now empty
355zooko@zooko.com**20110712153229
356 Ignore-this: 723c4f9e2211027c79d711715d972c5
357 Also remove a couple of vestigial references to figleaf, which is long gone.
358 fixes #1409 (remove contrib/fuse)
359]
360[add Protovis.js-based download-status timeline visualization
361Brian Warner <warner@lothar.com>**20110629222606
362 Ignore-this: 477ccef5c51b30e246f5b6e04ab4a127
363 
364 provide status overlap info on the webapi t=json output, add decode/decrypt
365 rate tooltips, add zoomin/zoomout buttons
366]
367[add more download-status data, fix tests
368Brian Warner <warner@lothar.com>**20110629222555
369 Ignore-this: e9e0b7e0163f1e95858aa646b9b17b8c
370]
371[prepare for viz: improve DownloadStatus events
372Brian Warner <warner@lothar.com>**20110629222542
373 Ignore-this: 16d0bde6b734bb501aa6f1174b2b57be
374 
375 consolidate IDownloadStatusHandlingConsumer stuff into DownloadNode
376]
377[docs: fix error in crypto specification that was noticed by Taylor R Campbell <campbell+tahoe@mumble.net>
378zooko@zooko.com**20110629185711
379 Ignore-this: b921ed60c1c8ba3c390737fbcbe47a67
380]
381[setup.py: don't make bin/tahoe.pyscript executable. fixes #1347
382david-sarah@jacaranda.org**20110130235809
383 Ignore-this: 3454c8b5d9c2c77ace03de3ef2d9398a
384]
385[Makefile: remove targets relating to 'setup.py check_auto_deps' which no longer exists. fixes #1345
386david-sarah@jacaranda.org**20110626054124
387 Ignore-this: abb864427a1b91bd10d5132b4589fd90
388]
389[Makefile: add 'make check' as an alias for 'make test'. Also remove an unnecessary dependency of 'test' on 'build' and 'src/allmydata/_version.py'. fixes #1344
390david-sarah@jacaranda.org**20110623205528
391 Ignore-this: c63e23146c39195de52fb17c7c49b2da
392]
393[Rename test_package_initialization.py to (much shorter) test_import.py .
394Brian Warner <warner@lothar.com>**20110611190234
395 Ignore-this: 3eb3dbac73600eeff5cfa6b65d65822
396 
397 The former name was making my 'ls' listings hard to read, by forcing them
398 down to just two columns.
399]
400[tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a003f4c430]
401zooko@zooko.com**20110611163741
402 Ignore-this: 64073a5f39e7937e8e5e1314c1a302d1
403 Apparently none of the two authors (stercor, terrell), three reviewers (warner, davidsarah, terrell), or one committer (me) actually ran the tests. This is presumably due to #20.
404 fixes #1412
405]
406[wui: right-align the size column in the WUI
407zooko@zooko.com**20110611153758
408 Ignore-this: 492bdaf4373c96f59f90581c7daf7cd7
409 Thanks to Ted "stercor" Rolle Jr. and Terrell Russell.
410 fixes #1412
411]
412[docs: three minor fixes
413zooko@zooko.com**20110610121656
414 Ignore-this: fec96579eb95aceb2ad5fc01a814c8a2
415 CREDITS for arc for stats tweak
416 fix link to .zip file in quickstart.rst (thanks to ChosenOne for noticing)
417 English usage tweak
418]
419[docs/running.rst: fix stray HTML (not .rst) link noticed by ChosenOne.
420david-sarah@jacaranda.org**20110609223719
421 Ignore-this: fc50ac9c94792dcac6f1067df8ac0d4a
422]
423[server.py:  get_latencies now reports percentiles _only_ if there are sufficient observations for the interpretation of the percentile to be unambiguous.
424wilcoxjg@gmail.com**20110527120135
425 Ignore-this: 2e7029764bffc60e26f471d7c2b6611e
426 interfaces.py:  modified the return type of RIStatsProvider.get_stats to allow for None as a return value
427 NEWS.rst, stats.py: documentation of change to get_latencies
428 stats.rst: now documents percentile modification in get_latencies
429 test_storage.py:  test_latencies now expects None in output categories that contain too few samples for the associated percentile to be unambiguously reported.
430 fixes #1392
431]
432[corrected "k must never be smaller than N" to "k must never be greater than N"
433secorp@allmydata.org**20110425010308
434 Ignore-this: 233129505d6c70860087f22541805eac
435]
436[docs: revert link in relnotes.txt from NEWS.rst to NEWS, since the former did not exist at revision 5000.
437david-sarah@jacaranda.org**20110517011214
438 Ignore-this: 6a5be6e70241e3ec0575641f64343df7
439]
440[docs: convert NEWS to NEWS.rst and change all references to it.
441david-sarah@jacaranda.org**20110517010255
442 Ignore-this: a820b93ea10577c77e9c8206dbfe770d
443]
444[docs: remove out-of-date docs/testgrid/introducer.furl and containing directory. fixes #1404
445david-sarah@jacaranda.org**20110512140559
446 Ignore-this: 784548fc5367fac5450df1c46890876d
447]
448[scripts/common.py: don't assume that the default alias is always 'tahoe' (it is, but the API of get_alias doesn't say so). refs #1342
449david-sarah@jacaranda.org**20110130164923
450 Ignore-this: a271e77ce81d84bb4c43645b891d92eb
451]
452[setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError
453zooko@zooko.com**20110128142006
454 Ignore-this: 57d4bc9298b711e4bc9dc832c75295de
455 I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
456]
457[M-x whitespace-cleanup
458zooko@zooko.com**20110510193653
459 Ignore-this: dea02f831298c0f65ad096960e7df5c7
460]
461[docs: fix typo in running.rst, thanks to arch_o_median
462zooko@zooko.com**20110510193633
463 Ignore-this: ca06de166a46abbc61140513918e79e8
464]
465[relnotes.txt: don't claim to work on Cygwin (which has been untested for some time). refs #1342
466david-sarah@jacaranda.org**20110204204902
467 Ignore-this: 85ef118a48453d93fa4cddc32d65b25b
468]
469[relnotes.txt: forseeable -> foreseeable. refs #1342
470david-sarah@jacaranda.org**20110204204116
471 Ignore-this: 746debc4d82f4031ebf75ab4031b3a9
472]
473[replace remaining .html docs with .rst docs
474zooko@zooko.com**20110510191650
475 Ignore-this: d557d960a986d4ac8216d1677d236399
476 Remove install.html (long since deprecated).
477 Also replace some obsolete references to install.html with references to quickstart.rst.
478 Fix some broken internal references within docs/historical/historical_known_issues.txt.
479 Thanks to Ravi Pinjala and Patrick McDonald.
480 refs #1227
481]
482[docs: FTP-and-SFTP.rst: fix a minor error and update the information about which version of Twisted fixes #1297
483zooko@zooko.com**20110428055232
484 Ignore-this: b63cfb4ebdbe32fb3b5f885255db4d39
485]
486[munin tahoe_files plugin: fix incorrect file count
487francois@ctrlaltdel.ch**20110428055312
488 Ignore-this: 334ba49a0bbd93b4a7b06a25697aba34
489 fixes #1391
490]
491[Fix a test failure in test_package_initialization on Python 2.4.x due to exceptions being stringified differently than in later versions of Python. refs #1389
492david-sarah@jacaranda.org**20110411190738
493 Ignore-this: 7847d26bc117c328c679f08a7baee519
494]
495[tests: add test for including the ImportError message and traceback entry in the summary of errors from importing dependencies. refs #1389
496david-sarah@jacaranda.org**20110410155844
497 Ignore-this: fbecdbeb0d06a0f875fe8d4030aabafa
498]
499[allmydata/__init__.py: preserve the message and last traceback entry (file, line number, function, and source line) of ImportErrors in the package versions string. fixes #1389
500david-sarah@jacaranda.org**20110410155705
501 Ignore-this: 2f87b8b327906cf8bfca9440a0904900
502]
503[remove unused variable detected by pyflakes
504zooko@zooko.com**20110407172231
505 Ignore-this: 7344652d5e0720af822070d91f03daf9
506]
507[allmydata/__init__.py: Nicer reporting of unparseable version numbers in dependencies. fixes #1388
508david-sarah@jacaranda.org**20110401202750
509 Ignore-this: 9c6bd599259d2405e1caadbb3e0d8c7f
510]
511[update FTP-and-SFTP.rst: the necessary patch is included in Twisted-10.1
512Brian Warner <warner@lothar.com>**20110325232511
513 Ignore-this: d5307faa6900f143193bfbe14e0f01a
514]
515[control.py: remove all uses of s.get_serverid()
516warner@lothar.com**20110227011203
517 Ignore-this: f80a787953bd7fa3d40e828bde00e855
518]
519[web: remove some uses of s.get_serverid(), not all
520warner@lothar.com**20110227011159
521 Ignore-this: a9347d9cf6436537a47edc6efde9f8be
522]
523[immutable/downloader/fetcher.py: remove all get_serverid() calls
524warner@lothar.com**20110227011156
525 Ignore-this: fb5ef018ade1749348b546ec24f7f09a
526]
527[immutable/downloader/fetcher.py: fix diversity bug in server-response handling
528warner@lothar.com**20110227011153
529 Ignore-this: bcd62232c9159371ae8a16ff63d22c1b
530 
531 When blocks terminate (either COMPLETE or CORRUPT/DEAD/BADSEGNUM), the
532 _shares_from_server dict was being popped incorrectly (using shnum as the
533 index instead of serverid). I'm still thinking through the consequences of
534 this bug. It was probably benign and really hard to detect. I think it would
535 cause us to incorrectly believe that we're pulling too many shares from a
536 server, and thus prefer a different server rather than asking for a second
537 share from the first server. The diversity code is intended to spread out the
538 number of shares simultaneously being requested from each server, but with
539 this bug, it might be spreading out the total number of shares requested at
540 all, not just simultaneously. (note that SegmentFetcher is scoped to a single
541 segment, so the effect doesn't last very long).
542]
543[immutable/downloader/share.py: reduce get_serverid(), one left, update ext deps
544warner@lothar.com**20110227011150
545 Ignore-this: d8d56dd8e7b280792b40105e13664554
546 
547 test_download.py: create+check MyShare instances better, make sure they share
548 Server objects, now that finder.py cares
549]
550[immutable/downloader/finder.py: reduce use of get_serverid(), one left
551warner@lothar.com**20110227011146
552 Ignore-this: 5785be173b491ae8a78faf5142892020
553]
554[immutable/offloaded.py: reduce use of get_serverid() a bit more
555warner@lothar.com**20110227011142
556 Ignore-this: b48acc1b2ae1b311da7f3ba4ffba38f
557]
558[immutable/upload.py: reduce use of get_serverid()
559warner@lothar.com**20110227011138
560 Ignore-this: ffdd7ff32bca890782119a6e9f1495f6
561]
562[immutable/checker.py: remove some uses of s.get_serverid(), not all
563warner@lothar.com**20110227011134
564 Ignore-this: e480a37efa9e94e8016d826c492f626e
565]
566[add remaining get_* methods to storage_client.Server, NoNetworkServer, and
567warner@lothar.com**20110227011132
568 Ignore-this: 6078279ddf42b179996a4b53bee8c421
569 MockIServer stubs
570]
571[upload.py: rearrange _make_trackers a bit, no behavior changes
572warner@lothar.com**20110227011128
573 Ignore-this: 296d4819e2af452b107177aef6ebb40f
574]
575[happinessutil.py: finally rename merge_peers to merge_servers
576warner@lothar.com**20110227011124
577 Ignore-this: c8cd381fea1dd888899cb71e4f86de6e
578]
579[test_upload.py: factor out FakeServerTracker
580warner@lothar.com**20110227011120
581 Ignore-this: 6c182cba90e908221099472cc159325b
582]
583[test_upload.py: server-vs-tracker cleanup
584warner@lothar.com**20110227011115
585 Ignore-this: 2915133be1a3ba456e8603885437e03
586]
587[happinessutil.py: server-vs-tracker cleanup
588warner@lothar.com**20110227011111
589 Ignore-this: b856c84033562d7d718cae7cb01085a9
590]
591[upload.py: more tracker-vs-server cleanup
592warner@lothar.com**20110227011107
593 Ignore-this: bb75ed2afef55e47c085b35def2de315
594]
595[upload.py: fix var names to avoid confusion between 'trackers' and 'servers'
596warner@lothar.com**20110227011103
597 Ignore-this: 5d5e3415b7d2732d92f42413c25d205d
598]
599[refactor: s/peer/server/ in immutable/upload, happinessutil.py, test_upload
600warner@lothar.com**20110227011100
601 Ignore-this: 7ea858755cbe5896ac212a925840fe68
602 
603 No behavioral changes, just updating variable/method names and log messages.
604 The effects outside these three files should be minimal: some exception
605 messages changed (to say "server" instead of "peer"), and some internal class
606 names were changed. A few things still use "peer" to minimize external
607 changes, like UploadResults.timings["peer_selection"] and
608 happinessutil.merge_peers, which can be changed later.
609]
610[storage_client.py: clean up test_add_server/test_add_descriptor, remove .test_servers
611warner@lothar.com**20110227011056
612 Ignore-this: efad933e78179d3d5fdcd6d1ef2b19cc
613]
614[test_client.py, upload.py:: remove KiB/MiB/etc constants, and other dead code
615warner@lothar.com**20110227011051
616 Ignore-this: dc83c5794c2afc4f81e592f689c0dc2d
617]
618[test: increase timeout on a network test because Francois's ARM machine hit that timeout
619zooko@zooko.com**20110317165909
620 Ignore-this: 380c345cdcbd196268ca5b65664ac85b
621 I'm skeptical that the test was proceeding correctly but ran out of time. It seems more likely that it had gotten hung. But if we raise the timeout to an even more extravagant number then we can be even more certain that the test was never going to finish.
622]
623[docs/configuration.rst: add a "Frontend Configuration" section
624Brian Warner <warner@lothar.com>**20110222014323
625 Ignore-this: 657018aa501fe4f0efef9851628444ca
626 
627 this points to docs/frontends/*.rst, which were previously underlinked
628]
629[web/filenode.py: avoid calling req.finish() on closed HTTP connections. Closes #1366
630"Brian Warner <warner@lothar.com>"**20110221061544
631 Ignore-this: 799d4de19933f2309b3c0c19a63bb888
632]
633[Add unit tests for cross_check_pkg_resources_versus_import, and a regression test for ref #1355. This requires a little refactoring to make it testable.
634david-sarah@jacaranda.org**20110221015817
635 Ignore-this: 51d181698f8c20d3aca58b057e9c475a
636]
637[allmydata/__init__.py: .name was used in place of the correct .__name__ when printing an exception. Also, robustify string formatting by using %r instead of %s in some places. fixes #1355.
638david-sarah@jacaranda.org**20110221020125
639 Ignore-this: b0744ed58f161bf188e037bad077fc48
640]
641[Refactor StorageFarmBroker handling of servers
642Brian Warner <warner@lothar.com>**20110221015804
643 Ignore-this: 842144ed92f5717699b8f580eab32a51
644 
645 Pass around IServer instance instead of (peerid, rref) tuple. Replace
646 "descriptor" with "server". Other replacements:
647 
648  get_all_servers -> get_connected_servers/get_known_servers
649  get_servers_for_index -> get_servers_for_psi (now returns IServers)
650 
651 This change still needs to be pushed further down: lots of code is now
652 getting the IServer and then distributing (peerid, rref) internally.
653 Instead, it ought to distribute the IServer internally and delay
654 extracting a serverid or rref until the last moment.
655 
656 no_network.py was updated to retain parallelism.
657]
658[TAG allmydata-tahoe-1.8.2
659warner@lothar.com**20110131020101]
660Patch bundle hash:
661b8db44add11f140848aaceddd5bbe2bac2c1a160