From 7354d8891480f5eaa535acc38a24f42ea63b18a6 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 3 Jul 2009 20:06:13 -0700 Subject: [PATCH] init: Ensure repo.mirror is noticed once set If we don't clear the cache, there can be a timestamp race between the pickle file and the raw text file, and we may not pick up the edit when we create a new config object around the same path name. Signed-off-by: Shawn O. Pearce --- subcmds/init.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subcmds/init.py b/subcmds/init.py index 0075b0b4..0586721f 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -117,6 +117,7 @@ to update the working directory files. if opt.mirror: if is_new: m.config.SetString('repo.mirror', 'true') + m.config.ClearCache() else: print >>sys.stderr, 'fatal: --mirror not supported on existing client' sys.exit(1)