/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 bzrlib/add.py

  • Committer: Andrew Bennetts
  • Date: 2006-09-12 06:30:01 UTC
  • mto: (1910.11.2 open_from_transport)
  • mto: This revision was merged to the branch mainline in revision 2006.
  • Revision ID: andrew.bennetts@canonical.com-20060912063001-7f832d0244311ed5
Sort os.listdir results in add.py.

Some filesystems (like ext3 with the 'dir_index' option set) don't necessarily
return directory listings in alphabetical order, contrary to what some tests
assume.

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
                else:
297
297
                    this_ie = inv[this_id]
298
298
 
299
 
            for subf in os.listdir(abspath):
 
299
            for subf in sorted(os.listdir(abspath)):
300
300
                # here we could use TreeDirectory rather than 
301
301
                # string concatenation.
302
302
                subp = bzrlib.osutils.pathjoin(directory.raw_path, subf)