# # # patch "ChangeLog" # from [3a1a8565a1880e67da227c6713bcc8656392c691] # to [92ddf54713dd2c652b83058905f3fa453af756d0] # # patch "netsync.cc" # from [1b80ff0d6f984f2723b60cca060f076c7bbb6c57] # to [8c4cbdeb2898f87f5f74457e7148a4cc0afde674] # ============================================================ --- ChangeLog 3a1a8565a1880e67da227c6713bcc8656392c691 +++ ChangeLog 92ddf54713dd2c652b83058905f3fa453af756d0 @@ -1,3 +1,11 @@ +2006-02-02 Emile Snyder + + * netsync.cc (run_netsync_protocol): Print a warning if either the + include or the exclude branch pattern have a ' or a " character + anywhere in them. Hopefully will help users running in a Windows + shell when they do: monotone sync myserver 'mybranch*' and nothing + happens because the ' characters are passed in to monotone. + 2005-01-30 Emile Snyder * annotate.cc: (do_annotate) Add ticker for revisions processed to ============================================================ --- netsync.cc 1b80ff0d6f984f2723b60cca060f076c7bbb6c57 +++ netsync.cc 8c4cbdeb2898f87f5f74457e7148a4cc0afde674 @@ -1,3 +1,4 @@ +// -*- mode: C++; c-file-style: "gnu"; indent-tabs-mode: nil; c-basic-offset: 2 -*- // copyright (C) 2004 graydon hoare // all rights reserved. // licensed to the public under the terms of the GNU GPL (>= 2) @@ -2852,6 +2853,18 @@ utf8 const & exclude_pattern, app_state & app) { + if (include_pattern().find_first_of("'\"") != std::string::npos) + { + W(F("include branch pattern contains a quote character:\n")); + W(F("%s\n") % include_pattern()); + } + + if (exclude_pattern().find_first_of("'\"") != std::string::npos) + { + W(F("exclude branch pattern contains a quote character:\n")); + W(F("%s\n") % exclude_pattern()); + } + try { if (voice == server_voice)