Hi all trac-darcs doesn't work at all on win32 systems because of the way it invokes the 'darcs' process.
it basically, does os.system( "cd repodir; TZ=UTC darcs changes" ) and that shell syntax doesn't work with cmd.exe. I've attached a simple patch to let it work with cmd.exe. Regards Sreeram
--- old-trac-darcs/tracdarcs/repos.py Tue Jul 11 15:22:31 2006 +++ new-trac-darcs/tracdarcs/repos.py Tue Jul 11 15:22:31 2006 @@ -27,6 +27,7 @@ i -= 1 yield x[i] +import sys from os import listdir, makedirs, utime, stat from os.path import join, isdir, split, exists from time import gmtime, mktime, strftime, timezone @@ -89,8 +90,12 @@ Return the XML output of the command. """ - command = "cd %s; TZ=UTC %s %s %s" % \ - (self.path, self.__darcs, command, args) + if sys.platform == 'win32' : + command = "cd %s & set TZ=UTC & %s %s %s" % \ + (self.path, self.__darcs, command, args) + else : + command = "cd %s; TZ=UTC %s %s %s" % \ + (self.path, self.__darcs, command, args) self.log.debug(command) np = NaivePopen (command, capturestderr=True) if np.errorlevel:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Trac mailing list Trac@lists.edgewall.com http://lists.edgewall.com/mailman/listinfo/trac