~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/tar_exporter.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-30 01:00:50 UTC
  • mfrom: (3591.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080730010050-yt2pf2kmm4x4c033
do not export things in the .bzr* namespace including .bzrrules (Ian
        Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    entries = inv.iter_entries()
48
48
    entries.next() # skip root
49
49
    for dp, ie in entries:
50
 
        # .bzrignore has no meaning outside of a working tree
51
 
        # so do not export it
52
 
        if dp == ".bzrignore":
 
50
        # The .bzr* namespace is reserved for "magic" files like
 
51
        # .bzrignore and .bzrrules - do not export these
 
52
        if dp.startswith(".bzr"):
53
53
            continue
54
54
 
55
55
        filename = osutils.pathjoin(root, dp).encode('utf8')