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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

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 brzlib import errors
 
32
from brzlib import urlutils
 
33
from brzlib.smart 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):