~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    :return: A Popen object.
104
104
    """
105
105
    if capture_errors:
106
 
        preexec_fn = _set_lang_C
 
106
        if sys.platform == 'win32':
 
107
            # Win32 doesn't support preexec_fn, but that is
 
108
            # okay, because it doesn't support LANG either.
 
109
            preexec_fn = None
 
110
        else:
 
111
            preexec_fn = _set_lang_C
107
112
        stderr = subprocess.PIPE
108
113
    else:
109
114
        preexec_fn = None