/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/export/__init__.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-04-01 17:57:39 UTC
  • mfrom: (6929.3.3 skip-root-simpler)
  • Revision ID: breezy.the.bot@gmail.com-20180401175739-36i4k9x17dx3wsu7
Some miscellaneous changes (check for actual root, add Tree.versionable_kind).

Merged from https://code.launchpad.net/~jelmer/brz/skip-root-simpler/+merge/342451

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    if subdir is not None:
203
203
        subdir = subdir.rstrip('/')
204
204
    entries = tree.iter_entries_by_dir()
205
 
    next(entries)  # skip root
206
205
    for path, entry in entries:
 
206
        if path == '':
 
207
            continue
207
208
        # The .bzr* namespace is reserved for "magic" files like
208
209
        # .bzrignore and .bzrrules - do not export these
209
210
        if skip_special and path.startswith(".bzr"):