]> granicus.if.org Git - python/commitdiff
Allow supression of subwcrev.exe invocation on a per-working-copy basis.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Mar 2006 16:30:41 +0000 (16:30 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Mar 2006 16:30:41 +0000 (16:30 +0000)
PCbuild/make_buildinfo.c

index 9d2f9f0612a98e516fcfb5e2d2a64249bee63796..4cebf45ccd8455debc898c55a2ed5ac85a657e89 100644 (file)
@@ -27,6 +27,9 @@ int make_buildinfo2()
        DWORD type, size;
        if (_stat(".svn", &st) < 0)
                return 0;
+       /* Allow suppression of subwcrev.exe invocation if a no_subwcrev file is present. */
+       if (_stat("no_subwcrev", &st) == 0)
+               return 0;
        if (RegOpenKey(HKEY_LOCAL_MACHINE, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS &&
            RegOpenKey(HKEY_CURRENT_USER, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS)
                /* Tortoise not installed */