diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-25 21:12:54 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-25 21:12:54 +0000 |
commit | 77bf17a39b77dab86274ceb6e415c74ae6a2622f (patch) | |
tree | f6202382c3b7bf79c7525e2a1bf10a759706ac46 /rdiff-backup/rdiff_backup/Globals.py | |
parent | 9a0da726e2172321cdc1dcd21441f4ffc41e7931 (diff) | |
download | rdiff-backup-77bf17a39b77dab86274ceb6e415c74ae6a2622f.tar.gz |
Still refactoring for 0.11.1 - prepare to rename highlevel
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@253 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Globals.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Globals.py | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/rdiff-backup/rdiff_backup/Globals.py b/rdiff-backup/rdiff_backup/Globals.py index 50271d3..bb4195c 100644 --- a/rdiff-backup/rdiff_backup/Globals.py +++ b/rdiff-backup/rdiff_backup/Globals.py @@ -150,9 +150,9 @@ ssh_compression = 1 # If true, print statistics after successful backup print_statistics = None -# On the reader and writer connections, the following will be -# replaced by the source and mirror Select objects respectively. -select_source, select_mirror = None, None +# On the writer connection, the following will be set to the mirror +# Select iterator. +select_mirror = None # On the backup writer connection, holds the root incrementing branch # object. Access is provided to increment error counts. @@ -246,18 +246,4 @@ def postset_regexp_local(name, re_string, flags): if flags: globals()[name] = re.compile(re_string, flags) else: globals()[name] = re.compile(re_string) -def set_select(source, Sel_Obj, rpath, tuplelist, quote_mode, *filelists): - """Initialize select object using tuplelist - - Note that each list in filelists must each be passed as - separate arguments, so each is recognized as a file by the - connection. Otherwise we will get an error because a list - containing files can't be pickled. - - """ - global select_source, select_mirror - sel = Sel_Obj(rpath, quote_mode) - sel.ParseArgs(tuplelist, filelists) - if source: select_source = sel - else: select_mirror = sel |