~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-26 08:54:41 UTC
  • mto: This revision was merged to the branch mainline in revision 3032.
  • Revision ID: bialix@ukr.net-20071126085441-lx9pwr0gcahikyp4
Martin's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    symbol_versioning,
50
50
    ui,
51
51
    urlutils,
 
52
    win32utils,
 
53
    workingtree,
 
54
    workingtree_4,
52
55
    xml4,
53
56
    xml5,
54
 
    workingtree,
55
 
    workingtree_4,
56
57
    )
57
58
from bzrlib.osutils import (
58
59
    sha_strings,
1357
1358
                                      # the covers
1358
1359
                                      mode=temp_control._dir_mode)
1359
1360
        if sys.platform == 'win32' and isinstance(transport, LocalTransport):
1360
 
            try:
1361
 
                import win32file
1362
 
            except ImportError:
1363
 
                pass
1364
 
            else:
1365
 
                win32file.SetFileAttributes(transport._abspath('.bzr'),
1366
 
                    win32file.FILE_ATTRIBUTE_HIDDEN)
 
1361
            win32utils.set_file_attr_hidden(transport._abspath('.bzr'))
1367
1362
        file_mode = temp_control._file_mode
1368
1363
        del temp_control
1369
1364
        mutter('created control directory in ' + transport.base)