# # patch "ChangeLog" # from [ab94e6622c60965545130759aa5722a62cc58a7d] # to [c2255226f311c8790f112ef44f5ba5f2ffe2b969] # # patch "netsync.cc" # from [7cf6b787b43c2ab13abd1d2343e915f84778eddb] # to [f70faf5c7746b6e484958f29416a50236e3707a5] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,8 @@ +2005-06-04 Timothy Brownawell + + * netsync.cc (process_hello_cmd): Warn about collection/regex + usage when talking to an old server. + 2005-06-04 Derek Scherger * commands.cc (update): update MT/work based on the changes --- netsync.cc +++ netsync.cc @@ -1707,12 +1707,16 @@ this->remote_peer_key_hash = their_key_hash_decoded; } + utf8 pat(pattern); + if(protocol_version == 4) + { + W(F("Talking to an old server. " + "Using %s as a collection, not a regex.") % pattern); + pat=convert_pattern(pattern); + } vector branchnames; set ok_branches; get_branches(app, branchnames); - utf8 pat(pattern); - if(protocol_version == 4) - pat=convert_pattern(pattern); boost::regex reg(pat()); for(vector::const_iterator i=branchnames.begin(); i!=branchnames.end(); i++)