~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-23 15:55:12 UTC
  • mfrom: (1551.15.59 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070723155512-ckelzx8u6m5vxyja
Test that default behavior is as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
                    if e.errno != errno.ENOENT:
234
234
                        raise
235
235
 
236
 
    def select_conflicts(self, tree, paths, ignore_misses=False):
 
236
    def select_conflicts(self, tree, paths, ignore_misses=False,
 
237
                         recurse=False):
237
238
        """Select the conflicts associated with paths in a tree.
238
239
        
239
240
        File-ids are also used for this.
258
259
                if cpath in path_set:
259
260
                    selected = True
260
261
                    selected_paths.add(cpath)
 
262
                if recurse:
 
263
                    if osutils.is_inside_any(path_set, cpath):
 
264
                        selected = True
 
265
                        selected_paths.add(cpath)
 
266
 
261
267
            for key in ('file_id', 'conflict_file_id'):
262
268
                cfile_id = getattr(conflict, key, None)
263
269
                if cfile_id is None: