1 | Sun Sep 6 01:39:34 PDT 2009 Kevan Carstensen <kevan@isnotajoke.com> |
---|
2 | * Implement more coherent behavior when copying with dircaps/filecaps (see #761) |
---|
3 | |
---|
4 | New patches: |
---|
5 | |
---|
6 | [Implement more coherent behavior when copying with dircaps/filecaps (see #761) |
---|
7 | Kevan Carstensen <kevan@isnotajoke.com>**20090906083934 |
---|
8 | Ignore-this: 8b3807b6523e07c7ace0a2cbed50fbc9 |
---|
9 | ] { |
---|
10 | hunk ./src/allmydata/scripts/tahoe_cp.py 444 |
---|
11 | self.caps_only = options["caps-only"] |
---|
12 | self.cache = {} |
---|
13 | try: |
---|
14 | - self.try_copy() |
---|
15 | + status = self.try_copy() |
---|
16 | + return status |
---|
17 | except TahoeError, te: |
---|
18 | Failure().printTraceback(self.stderr) |
---|
19 | print >>self.stderr |
---|
20 | hunk ./src/allmydata/scripts/tahoe_cp.py 451 |
---|
21 | te.display(self.stderr) |
---|
22 | return 1 |
---|
23 | - return 0 |
---|
24 | |
---|
25 | def try_copy(self): |
---|
26 | source_specs = self.options.sources |
---|
27 | hunk ./src/allmydata/scripts/tahoe_cp.py 501 |
---|
28 | return self.copy_file(source, target) |
---|
29 | |
---|
30 | if isinstance(target, (LocalDirectoryTarget, TahoeDirectoryTarget)): |
---|
31 | + # We're copying to an existing directory -- make sure that we |
---|
32 | + # have target names for everything |
---|
33 | + for (name, source) in sources: |
---|
34 | + if name is None and isinstance(source, TahoeFileSource): |
---|
35 | + self.to_stderr( |
---|
36 | + "error: you must specify a destination filename") |
---|
37 | + return 1 |
---|
38 | return self.copy_to_directory(sources, target) |
---|
39 | |
---|
40 | self.to_stderr("unknown target") |
---|
41 | hunk ./src/allmydata/scripts/tahoe_cp.py 597 |
---|
42 | writecap = ascii_or_none(d.get("rw_uri")) |
---|
43 | readcap = ascii_or_none(d.get("ro_uri")) |
---|
44 | mutable = d.get("mutable", False) # older nodes don't provide it |
---|
45 | + if source_spec.rfind('/') != -1: |
---|
46 | + name = source_spec[source_spec.rfind('/')+1:] |
---|
47 | t = TahoeFileSource(self.nodeurl, mutable, writecap, readcap) |
---|
48 | return name, t |
---|
49 | |
---|
50 | } |
---|
51 | |
---|
52 | Context: |
---|
53 | |
---|
54 | [new approach for debian packaging, sharing pieces across distributions. Still experimental, still only works for sid. |
---|
55 | warner@lothar.com**20090818190527 |
---|
56 | Ignore-this: a75eb63db9106b3269badbfcdd7f5ce1 |
---|
57 | ] |
---|
58 | [new experimental deb-packaging rules. Only works for sid so far. |
---|
59 | Brian Warner <warner@lothar.com>**20090818014052 |
---|
60 | Ignore-this: 3a26ad188668098f8f3cc10a7c0c2f27 |
---|
61 | ] |
---|
62 | [setup.py: read _version.py and pass to setup(version=), so more commands work |
---|
63 | Brian Warner <warner@lothar.com>**20090818010057 |
---|
64 | Ignore-this: b290eb50216938e19f72db211f82147e |
---|
65 | like "setup.py --version" and "setup.py --fullname" |
---|
66 | ] |
---|
67 | [test/check_speed.py: fix shbang line |
---|
68 | Brian Warner <warner@lothar.com>**20090818005948 |
---|
69 | Ignore-this: 7f3a37caf349c4c4de704d0feb561f8d |
---|
70 | ] |
---|
71 | [setup: remove bundled version of darcsver-1.2.1 |
---|
72 | zooko@zooko.com**20090816233432 |
---|
73 | Ignore-this: 5357f26d2803db2d39159125dddb963a |
---|
74 | That version of darcsver emits a scary error message when the darcs executable or the _darcs subdirectory is not found. |
---|
75 | This error is hidden (unless the --loud option is passed) in darcsver >= 1.3.1. |
---|
76 | Fixes #788. |
---|
77 | ] |
---|
78 | [de-Service-ify Helper, pass in storage_broker and secret_holder directly. |
---|
79 | Brian Warner <warner@lothar.com>**20090815201737 |
---|
80 | Ignore-this: 86b8ac0f90f77a1036cd604dd1304d8b |
---|
81 | This makes it more obvious that the Helper currently generates leases with |
---|
82 | the Helper's own secrets, rather than getting values from the client, which |
---|
83 | is arguably a bug that will likely be resolved with the Accounting project. |
---|
84 | ] |
---|
85 | [immutable.Downloader: pass StorageBroker to constructor, stop being a Service |
---|
86 | Brian Warner <warner@lothar.com>**20090815192543 |
---|
87 | Ignore-this: af5ab12dbf75377640a670c689838479 |
---|
88 | child of the client, access with client.downloader instead of |
---|
89 | client.getServiceNamed("downloader"). The single "Downloader" instance is |
---|
90 | scheduled for demolition anyways, to be replaced by individual |
---|
91 | filenode.download calls. |
---|
92 | ] |
---|
93 | [tests: double the timeout on test_runner.RunNode.test_introducer since feisty hit a timeout |
---|
94 | zooko@zooko.com**20090815160512 |
---|
95 | Ignore-this: ca7358bce4bdabe8eea75dedc39c0e67 |
---|
96 | I'm not sure if this is an actual timing issue (feisty is running on an overloaded VM if I recall correctly), or it there is a deeper bug. |
---|
97 | ] |
---|
98 | [stop making History be a Service, it wasn't necessary |
---|
99 | Brian Warner <warner@lothar.com>**20090815114415 |
---|
100 | Ignore-this: b60449231557f1934a751c7effa93cfe |
---|
101 | ] |
---|
102 | [Overhaul IFilesystemNode handling, to simplify tests and use POLA internally. |
---|
103 | Brian Warner <warner@lothar.com>**20090815112846 |
---|
104 | Ignore-this: 1db1b9c149a60a310228aba04c5c8e5f |
---|
105 | |
---|
106 | * stop using IURI as an adapter |
---|
107 | * pass cap strings around instead of URI instances |
---|
108 | * move filenode/dirnode creation duties from Client to new NodeMaker class |
---|
109 | * move other Client duties to KeyGenerator, SecretHolder, History classes |
---|
110 | * stop passing Client reference to dirnode/filenode constructors |
---|
111 | - pass less-powerful references instead, like StorageBroker or Uploader |
---|
112 | * always create DirectoryNodes by wrapping a filenode (mutable for now) |
---|
113 | * remove some specialized mock classes from unit tests |
---|
114 | |
---|
115 | Detailed list of changes (done one at a time, then merged together) |
---|
116 | |
---|
117 | always pass a string to create_node_from_uri(), not an IURI instance |
---|
118 | always pass a string to IFilesystemNode constructors, not an IURI instance |
---|
119 | stop using IURI() as an adapter, switch on cap prefix in create_node_from_uri() |
---|
120 | client.py: move SecretHolder code out to a separate class |
---|
121 | test_web.py: hush pyflakes |
---|
122 | client.py: move NodeMaker functionality out into a separate object |
---|
123 | LiteralFileNode: stop storing a Client reference |
---|
124 | immutable Checker: remove Client reference, it only needs a SecretHolder |
---|
125 | immutable Upload: remove Client reference, leave SecretHolder and StorageBroker |
---|
126 | immutable Repairer: replace Client reference with StorageBroker and SecretHolder |
---|
127 | immutable FileNode: remove Client reference |
---|
128 | mutable.Publish: stop passing Client |
---|
129 | mutable.ServermapUpdater: get StorageBroker in constructor, not by peeking into Client reference |
---|
130 | MutableChecker: reference StorageBroker and History directly, not through Client |
---|
131 | mutable.FileNode: removed unused indirection to checker classes |
---|
132 | mutable.FileNode: remove Client reference |
---|
133 | client.py: move RSA key generation into a separate class, so it can be passed to the nodemaker |
---|
134 | move create_mutable_file() into NodeMaker |
---|
135 | test_dirnode.py: stop using FakeClient mockups, use NoNetworkGrid instead. This simplifies the code, but takes longer to run (17s instead of 6s). This should come down later when other cleanups make it possible to use simpler (non-RSA) fake mutable files for dirnode tests. |
---|
136 | test_mutable.py: clean up basedir names |
---|
137 | client.py: move create_empty_dirnode() into NodeMaker |
---|
138 | dirnode.py: get rid of DirectoryNode.create |
---|
139 | remove DirectoryNode.init_from_uri, refactor NodeMaker for customization, simplify test_web's mock Client to match |
---|
140 | stop passing Client to DirectoryNode, make DirectoryNode.create_with_mutablefile the normal DirectoryNode constructor, start removing client from NodeMaker |
---|
141 | remove Client from NodeMaker |
---|
142 | move helper status into History, pass History to web.Status instead of Client |
---|
143 | test_mutable.py: fix minor typo |
---|
144 | ] |
---|
145 | [docs: edits for docs/running.html from Sam Mason |
---|
146 | zooko@zooko.com**20090809201416 |
---|
147 | Ignore-this: 2207e80449943ebd4ed50cea57c43143 |
---|
148 | ] |
---|
149 | [docs: install.html: instruct Debian users to use this document and not to go find the DownloadDebianPackages page, ignore the warning at the top of it, and try it |
---|
150 | zooko@zooko.com**20090804123840 |
---|
151 | Ignore-this: 49da654f19d377ffc5a1eff0c820e026 |
---|
152 | http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html |
---|
153 | ] |
---|
154 | [docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that |
---|
155 | zooko@zooko.com**20090802135016 |
---|
156 | Ignore-this: 53b1493a0491bc30fb2935fad283caeb |
---|
157 | ] |
---|
158 | [docs: about.html: fix English usage noticed by Amber |
---|
159 | zooko@zooko.com**20090802050533 |
---|
160 | Ignore-this: 89965c4650f9bd100a615c401181a956 |
---|
161 | ] |
---|
162 | [docs: fix mis-spelled word in about.html |
---|
163 | zooko@zooko.com**20090802050320 |
---|
164 | Ignore-this: fdfd0397bc7cef9edfde425dddeb67e5 |
---|
165 | ] |
---|
166 | [TAG allmydata-tahoe-1.5.0 |
---|
167 | zooko@zooko.com**20090802031303 |
---|
168 | Ignore-this: 94e5558e7225c39a86aae666ea00f166 |
---|
169 | ] |
---|
170 | Patch bundle hash: |
---|
171 | 0058d454cff3281e2b4d36721bfea7a30a4935b9 |
---|