/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 breezy/smart/vfs.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-10 16:40:42 UTC
  • mfrom: (6653.6.7 rename-controldir)
  • mto: This revision was merged to the branch mainline in revision 6690.
  • Revision ID: jelmer@jelmer.uk-20170610164042-zrxqgy2htyduvke2
MergeĀ rename-controldirĀ branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
protocol, as implemented in bzr 0.11 and later.
25
25
"""
26
26
 
 
27
from __future__ import absolute_import
 
28
 
27
29
import os
28
30
 
29
 
from bzrlib import errors
30
 
from bzrlib import urlutils
31
 
from bzrlib.smart import request
 
31
from .. import errors
 
32
from .. import urlutils
 
33
from . import request
32
34
 
33
35
 
34
36
def _deserialise_optional_mode(mode):
43
45
def vfs_enabled():
44
46
    """Is the VFS enabled ?
45
47
 
46
 
    the VFS is disabled when the BZR_NO_SMART_VFS environment variable is set.
 
48
    the VFS is disabled when the BRZ_NO_SMART_VFS environment variable is set.
47
49
 
48
50
    :return: True if it is enabled.
49
51
    """
50
 
    return not 'BZR_NO_SMART_VFS' in os.environ
 
52
    return not 'BRZ_NO_SMART_VFS' in os.environ
51
53
 
52
54
 
53
55
class VfsRequest(request.SmartServerRequest):