~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to TODO

  • Committer: Martin Pool
  • Date: 2005-09-30 05:56:05 UTC
  • mto: (1185.14.2)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: mbp@sourcefrog.net-20050930055605-a2c534529b392a7d
- fix upgrade for transport changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
Small things
18
18
------------
19
19
 
 
20
* ``bzr status`` should show some description of patches that are merged but 
 
21
  not yet committed.  Preferably in a very compact format so that they
 
22
  just fit on a single line; this could also be used for say ``log
 
23
  --tiny``::
 
24
 
 
25
  2005-11-05      mbp  Flowers for stephane
 
26
 
20
27
* Fix tests so that import errors caused by modules don't produce false reports
21
28
  that the tests themselves don't exist.
22
29
 
52
59
 
53
60
* -r option should take a revision-id as well as a revno.
54
61
 
 
62
* allow ``bzr st -r 300`` to show a summary of changes since then.
 
63
 
55
64
* ``bzr info`` should count only people with distinct email addresses as
56
65
  different committers.  (Or perhaps only distinct userids?)
57
66
 
82
91
* ``bzr inventory -r REV`` and perhaps unify this with ``bzr ls``,
83
92
  giving options to display ids, types, etc.
84
93
 
 
94
* Split BzrError into various more specific subclasses for different
 
95
  errors people might want to catch.
 
96
 
 
97
* If the export destination ends in '.tar', '.tar.gz', etc then create
 
98
  a tarball instead of a directory.  (Need to actually make a
 
99
  temporary directory and then tar that up.)
 
100
 
 
101
  http://www.gelato.unsw.edu.au/archives/git/0504/2194.html
 
102
 
85
103
* RemoteBranch could maintain a cache either in memory or on disk.  We
86
104
  know more than an external cache might about which files are
87
105
  immutable and which can vary.  On the other hand, it's much simpler
127
145
  methods return object, but what we really want is the raw XML, which
128
146
  can be popped into our own store.  That needs to be refactored.
129
147
 
 
148
* ``bzr status FOO`` where foo is ignored should say so.
 
149
 
 
150
* ``bzr mkdir A...`` should just create and add A.
 
151
 
130
152
* Guard against repeatedly merging any particular patch.
131
153
 
132
154
* More options for diff:
147
169
 
148
170
  - and, of course, tests for all this
149
171
 
 
172
* ``bzr add`` with no arguments should probably be the same as ``bzr add .``
 
173
 
150
174
* Reproducible performance benchmark to measure whether performance is 
151
175
  getting better or worse.
152
176
 
184
208
 
185
209
* BZRDIR should be in branch.py not __init__.py.
186
210
 
187
 
* bzrlib.delta.compare_trees() shouldn't need to sort all of the result
188
 
  lists, since they are being added in alphabetical order. Write tests
189
 
  to guarantee this, and remove the sort() calls.
 
211
* ``status `` should accept a -r option to show changes relative to a revision,
 
212
  or between revisions
190
213
 
191
214
Medium things
192
215
-------------
193
216
 
 
217
* ~/.bzr.log is not written anymore for some reason.
 
218
 
194
219
* merge should add all revision and inventory XML to the local store.
195
220
 
196
221
* check should give a warning for revisions that are named in the
203
228
  just get the id for the selected files, look up their location and
204
229
  diff just those files.  No need to traverse the entire inventories.
205
230
 
 
231
* ``bzr status DIR`` or ``bzr diff DIR`` should report on all changes
 
232
  under that directory.
 
233
 
206
234
* Fix up Inventory objects to represent root object as an entry.
207
235
 
208
236
* Don't convert entire entry from ElementTree to an object when it is
285
313
  - Class that describes the state of a working tree so we can just
286
314
    assert it's equal.
287
315
 
 
316
* There are too many methods on Branch() that really manipulate the
 
317
  WorkingTree.  They should be moved across.
 
318
 
 
319
  Also there are some methods which are duplicated on Tree and
 
320
  Inventory objects, and it should be made more clear which ones are
 
321
  proxies and which ones behave differently, and how.
 
322
 
288
323
* Try using XSLT to add some formatting to REST-generated HTML.  Or
289
324
  maybe write a small Python program that specifies a header and foot
290
325
  for the pages and calls into the docutils libraries.
306
341
 
307
342
  - Hold the ElementTree in memory in the Inventory object and work
308
343
    directly on that, rather than converting into Python objects every
309
 
    time it is read in.  Probably still expose it through some kind of
 
344
    time it is read in.  Probably still exposoe it through some kind of
310
345
    object interface though, but perhaps that should just be a proxy
311
346
    for the elements.
312
347
 
318
353
 
319
354
* stat cache should perhaps only stat files as necessary, rather than
320
355
  doing them all up-front.  On the other hand, that disallows the
321
 
  optimization of stating them in inode order.
 
356
  opimization of stating them in inode order.
322
357
 
323
358
* It'd be nice to pipeline multiple HTTP requests.  Often we can
324
359
  predict what will be wanted in future: all revisions, or all texts
329
364
 
330
365
* Paranoid mode where we never trust SHA-1 matches.
331
366
 
 
367
* Don't commit if there are no changes unless forced.
 
368
 
332
369
* --dry-run mode for commit?  (Or maybe just run with
333
370
  check-command=false?)
334
371
 
340
377
* XML attributes might have trouble with filenames containing \n and
341
378
  \r.  Do we really want to support this?  I think perhaps not.
342
379
 
 
380
* Remember execute bits, so that exports will work OK.
 
381
 
343
382
* Unify smart_add and plain Branch.add(); perhaps smart_add should
344
383
  just build a list of files to add and pass that to the regular add
345
384
  function.
346
385
 
347
386
* Function to list a directory, saying in which revision each file was
348
 
  last modified.  Useful for web and GUI interfaces, and slow to
 
387
  last modified.  Useful for web and gui interfaces, and slow to
349
388
  compute one file at a time.
350
389
  
351
390
  This will be done when we track file texts by referring to the
356
395
* Perhaps attempts to get locks should timeout after some period of
357
396
  time, or at least display a progress message.
358
397
 
 
398
* Split out upgrade functionality from check command into a separate
 
399
  ``bzr upgrade``.
 
400
 
359
401
* Don't pass around command classes but rather pass objects.  This'd
360
402
  make it cleaner to construct objects wrapping external commands.
361
403
 
362
404
* Track all merged-in revisions in a versioned add-only metafile.
363
405
 
 
406
* ``pull --clobber`` should discard any local changes not present
 
407
  remotely.  Not generally what you want, but possibly useful when
 
408
  you're just mirroring another branch and want to keep tracking it
 
409
  even when they e.g. uncommit or make similar non-forward movements.
 
410
  Also for push I suppose.  Clobber may not be the best name, maybe
 
411
  ``--destroy``?
 
412
 
364
413
* ``uncommit`` command that removes a revision from the end of the
365
414
  revision-history; just doing this is enough to remove the commit,
366
415
  and a new commit will automatically be made against the
367
416
  predecessor.  This can be repeated.
368
417
 
369
 
  It only makes sense to delete from the tail of history.
370
 
 
371
 
  This has been implemented, but it does not remove the texts from
372
 
  the store.
373
 
 
374
 
* ``bzrlib.lazy_import.lazy_import`` could check to see if a given
375
 
  module has already been imported (look at ``sys.modules``). If it
376
 
  has, then just import it directly, rather than creating a lazy
377
 
  object.
 
418
  It only makes sense to delete from the tail of history, not from the
 
419
  end.
 
420
 
 
421
  The revision, its inventory and texts remain floating in the store.
 
422
  We should perhaps add the revision to a list of removed-commits, so
 
423
  that it can be restored or at least accounted for when checking
 
424
  consistency.  This file would not be versioned, and probably should
 
425
  not propagate when branched.
 
426
 
 
427
  If we track merged revisions then we need to update this list too.
 
428
  If the list is stored in a weave it's easy (implicit): the version
 
429
  of the list can remain but it won't be referenced anymore.  It's
 
430
  probably best to just store this list in a weave in the first place
 
431
  and be done.
378
432
 
379
433
 
380
434
Large things
443
497
  with removing the tags on the way back in.
444
498
 
445
499
* ``bzr find``
446
 
 
447
 
Selftest
448
 
--------
449
 
 
450
 
* Write some benchmark tests
451
 
 
452
 
* we could display the ids of some tests selected by time to rune, or cputime,
453
 
  rusage. 
454
 
 
455
 
* We could run tests multiple times and report deviation/slowest/fastest.
456
 
 
457
 
* Gather lsprofile output for each test individually - log that somewhere.
458
 
 
459
 
* Should plugins be able to offer benchmark tests ?
460
 
 
461
 
CHANGESETS
462
 
----------
463
 
Ensure changeset command behaves properly w/revisions (e.g. 0)
464
 
Figure out whether testament-related bug is my problem
465
 
Get rid of the 'old' directory
466
 
Bundle signatures
467
 
What to do about ghost ancestors in remote branch that are present locally?