~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-28 03:12:48 UTC
  • mfrom: (5215.4.4 find-bzrdirs-missing-repos)
  • Revision ID: pqm@pqm.ubuntu.com-20100628031248-icctusovofhlk7z9
(lifeless) Do not return bzrdirs in find_bzrdirs where there is a branch
 with no repository available to it. (Marius Kruger) (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import sys
20
20
 
21
 
import bzrlib.bzrdir
22
21
import bzrlib.osutils
23
 
from bzrlib.symbol_versioning import *
24
22
 
25
23
 
26
24
class AddAction(object):
95
93
        full_base_path = bzrlib.osutils.pathjoin(self.base_path, path.raw_path)
96
94
        # This may return None, but it is our last attempt
97
95
        return self.base_tree.path2id(full_base_path), full_base_path
98
 
 
99
 
 
100
 
# TODO: jam 20050105 These could be used for compatibility
101
 
#       however, they bind against the current stdout, not the
102
 
#       one which exists at the time they are called, so they
103
 
#       don't work for the test suite.
104
 
# deprecated
105
 
add_action_add = AddAction()
106
 
add_action_null = add_action_add
107
 
add_action_add_and_print = AddAction(should_print=True)
108
 
add_action_print = add_action_add_and_print