/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/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-22 16:12:36 UTC
  • mfrom: (3719.1.2 272648-rm-dir-before-bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20080922161236-5q0itgsu3l663gnl
(vila) Fix #272648 by not filtering out '.bzr' when it's not there

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
2326
2326
                    # value.
2327
2327
                    bzrdir_loc = bisect_left(cur_disk_dir_content,
2328
2328
                        ('.bzr', '.bzr'))
2329
 
                    if cur_disk_dir_content[bzrdir_loc][0] == '.bzr':
 
2329
                    if (bzrdir_loc < len(cur_disk_dir_content)
 
2330
                        and cur_disk_dir_content[bzrdir_loc][0] == '.bzr'):
2330
2331
                        # we dont yield the contents of, or, .bzr itself.
2331
2332
                        del cur_disk_dir_content[bzrdir_loc]
2332
2333
            if inv_finished: