~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-08 15:08:04 UTC
  • mfrom: (1740.3.10 commit_builder)
  • Revision ID: pqm@pqm.ubuntu.com-20060608150804-a186fa90bfede9a6
(jrv,rbc,jam) Refactor commit.Commit to use a Repository specific CommitBuilder, enables foreign branch commits

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
        return False
379
379
 
380
380
 
 
381
def is_inside_or_parent_of_any(dir_list, fname):
 
382
    """True if fname is a child or a parent of any of the given files."""
 
383
    for dirname in dir_list:
 
384
        if is_inside(dirname, fname) or is_inside(fname, dirname):
 
385
            return True
 
386
    else:
 
387
        return False
 
388
 
 
389
 
381
390
def pumpfile(fromfile, tofile):
382
391
    """Copy contents of one file to another."""
383
392
    BUFSIZE = 32768