diff -r 49a8625b8cac -r 2f7a38f336f4 mercurial/posix.py --- a/mercurial/posix.py Tue Jan 12 15:12:53 2010 +0100 +++ b/mercurial/posix.py Fri Apr 10 21:20:25 2009 +0200 @@ -257,3 +257,8 @@ return grp.getgrgid(gid)[0] except KeyError: return str(gid) + +def spawndetached(args): + return os.spawnvp(os.P_NOWAIT | getattr(os, 'P_DETACH', 0), + args[0], args) +