~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: Aaron Bentley
  • Date: 2007-07-23 14:27:42 UTC
  • mto: (1551.19.24 Aaron's mergeable stuff)
  • mto: This revision was merged to the branch mainline in revision 2649.
  • Revision ID: abentley@panoramicfeedback.com-20070723142742-98ye8w4au9bjg5q0
Status honours selected paths for conflicts (#127606)

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: