~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/treeshape.py

  • Committer: Martin Pool
  • Date: 2010-07-16 13:06:33 UTC
  • mfrom: (4634.157.8 192859-2.0-symlinks)
  • mto: This revision was merged to the branch mainline in revision 5351.
  • Revision ID: mbp@canonical.com-20100716130633-2kfmbbo8f4om85n4
merge fix for bug 128562 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005, 2010 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
51
51
        if name[-1] == '/':
52
52
            os.mkdir(name)
53
53
        elif name[-1] == '@':
54
 
            raise NotImplementedError('symlinks not handled yet')
 
54
            os.symlink(tt[1], tt[0][:-1])
55
55
        else:
56
56
            f = file(name, 'wb')
57
57
            try: