/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/tests/blackbox/test_aliases.py

  • Committer: John Arbash Meinel
  • Date: 2008-12-11 19:37:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3895.
  • Revision ID: john@arbash-meinel.com-20081211193706-7qz4e5f9a8c5w4b1
Implement osutils.split_lines() in terms of chunks_to_lines if possible.

chunks_to_lines([fulltext]) is about 2x faster than the original split_lines implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
"""Black-box tests for bzr aliases.
17
17
"""
18
18
 
36
36
 
37
37
 
38
38
        if os.path.isfile(config_filename()):
39
 
            # Something is wrong in environment,
40
 
            # we risk overwriting users config
 
39
            # Something is wrong in environment, 
 
40
            # we risk overwriting users config 
41
41
            self.assert_(config_filename() + "exists, abort")
42
42
 
43
43
        ensure_config_dir_exists()