Commit 17297f80 authored by owsla's avatar owsla

When enable use_compatible_timestamps, make sure to reset Time.curtimestr

on all connections.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@997 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent f39052eb
...@@ -29,7 +29,7 @@ FSAbilities object describing it. ...@@ -29,7 +29,7 @@ FSAbilities object describing it.
import errno, os import errno, os
import Globals, log, TempFile, selection, robust, SetConnections, \ import Globals, log, TempFile, selection, robust, SetConnections, \
static, FilenameMapping, win_acls static, FilenameMapping, win_acls, Time
class FSAbilities: class FSAbilities:
"""Store capabilities of given file system""" """Store capabilities of given file system"""
...@@ -712,6 +712,7 @@ class SetGlobals: ...@@ -712,6 +712,7 @@ class SetGlobals:
def set_compatible_timestamps(self): def set_compatible_timestamps(self):
if Globals.chars_to_quote.find(":") > -1: if Globals.chars_to_quote.find(":") > -1:
SetConnections.UpdateGlobal('use_compatible_timestamps', 1) SetConnections.UpdateGlobal('use_compatible_timestamps', 1)
Time.setcurtime(Time.curtime) # update Time.curtimestr on all conns
log.Log("Enabled use_compatible_timestamps", 4) log.Log("Enabled use_compatible_timestamps", 4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment