changeset 886da6fa6d4a in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=886da6fa6d4a description: SCons: Fix bug with .hg dir not existing.
diffstat: 1 file changed, 2 insertions(+), 3 deletions(-) SConstruct | 5 ++--- diffs (30 lines): diff -r 4ed2100efa84 -r 886da6fa6d4a SConstruct --- a/SConstruct Wed Mar 04 22:37:45 2009 -0500 +++ b/SConstruct Thu Mar 05 17:05:06 2009 -0500 @@ -211,17 +211,15 @@ run the style hook. It is important. """ +hg_info = "Unknown" if hgdir.exists(): # 1) Grab repository revision if we know it. cmd = "hg id -n -i -t -b" try: hg_info = read_command(cmd, cwd=env.root.abspath).strip() except OSError: - hg_info = "Unknown" print mercurial_bin_not_found - env['HG_INFO'] = hg_info - # 2) Ensure that the style hook is in place. try: ui = None @@ -240,6 +238,7 @@ sys.exit(1) else: print ".hg directory not found" +env['HG_INFO'] = hg_info ################################################### # _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev