~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2005-09-12 01:29:49 UTC
  • mto: (1092.2.12) (974.1.76) (1185.8.2)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050912012949-73a539d3f2542173
- patch from mpe to automatically add parent directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    Therefore simply saying 'bzr add' will version all files that
145
145
    are currently unknown.
146
146
 
147
 
    TODO: Perhaps adding a file whose directly is not versioned should
148
 
    recursively add that parent, rather than giving an error?
 
147
    Adding a file whose parent directory is not versioned will
 
148
    implicitly add the parent, and so on up to the root. This means
 
149
    you should never need to explictly add a directory, they'll just
 
150
    get added when you add a file in the directory.
149
151
    """
150
152
    takes_args = ['file*']
151
153
    takes_options = ['verbose', 'no-recurse']