# HG changeset patch # User John Schneiderman # Date 1406591293 18000 # Node ID ab317a52e5b4ce7cec06c9dcbbc7b04971d117e4 # Parent 9302ab22517a9e4334f61adce5f4038f0de267fe Add delay to allow configuration file to close in laggy systems. IN: - diff -r 9302ab22517a -r ab317a52e5b4 doc/ChangeLog --- a/doc/ChangeLog Sat Jul 26 15:29:15 2014 -0500 +++ b/doc/ChangeLog Mon Jul 28 18:48:13 2014 -0500 @@ -17,6 +17,8 @@ *** You should have received a copy of the GNU Affero General Public License*** *** along with this program. If not, see . *** ******************************************************************************** +2014-07-28 John Schneiderman 0.2.1 +- Fixed issue where the configuration file copy started before it closed. 2014-07-26 John Schneiderman 0.2.0 - Ability to modify an existing repository. - Load a managed repository object from it's storage name. diff -r 9302ab22517a -r ab317a52e5b4 src/hwm.py --- a/src/hwm.py Sat Jul 26 15:29:15 2014 -0500 +++ b/src/hwm.py Mon Jul 28 18:48:13 2014 -0500 @@ -25,7 +25,7 @@ # The full name of the application LONG_NAME='HgWeb Manager' # The current version of the application -VERSION = '0.2.0' +VERSION = '0.2.1' # The current copyright years. YEARS = '2014' # A short description of the application diff -r 9302ab22517a -r ab317a52e5b4 src/manager.py --- a/src/manager.py Sat Jul 26 15:29:15 2014 -0500 +++ b/src/manager.py Mon Jul 28 18:48:13 2014 -0500 @@ -266,7 +266,11 @@ else: target.write(line) target.flush() - shutil.copyfile(target.name, settings.HgWebPath + os.sep + 'hgweb.config') + if not source.closed: + while not source.closed: + print "Waiting three seconds for configuration to close." + time.sleep(3) + shutil.copy2(target.name, settings.HgWebPath + os.sep + 'hgweb.config') return foundRepo def __removeRepository(repo):