From: Simon Hausmann Date: Sat, 10 Mar 2007 08:49:19 +0000 (+0100) Subject: Haha, of course the extension should be .py! X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=852fcfea754590569a73fe833332449233e099f6;p=python%2Ffast-export.git Haha, of course the extension should be .py! --- diff --git a/p4-debug.p4 b/p4-debug.p4 deleted file mode 100755 index 8fb159f..0000000 --- a/p4-debug.p4 +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python -# -# p4-debug.py -# -# Author: Simon Hausmann -# License: MIT -# -# executes a p4 command with -G and prints the resulting python dicts -# -import os, string, sys -import marshal, popen2 - -cmd = "" -for arg in sys.argv[1:]: - cmd += arg + " " - -pipe = os.popen("p4 -G %s" % cmd, "rb") -try: - while True: - entry = marshal.load(pipe) - print entry -except EOFError: - pass -pipe.close() - diff --git a/p4-debug.py b/p4-debug.py new file mode 100755 index 0000000..8fb159f --- /dev/null +++ b/p4-debug.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# +# p4-debug.py +# +# Author: Simon Hausmann +# License: MIT +# +# executes a p4 command with -G and prints the resulting python dicts +# +import os, string, sys +import marshal, popen2 + +cmd = "" +for arg in sys.argv[1:]: + cmd += arg + " " + +pipe = os.popen("p4 -G %s" % cmd, "rb") +try: + while True: + entry = marshal.load(pipe) + print entry +except EOFError: + pass +pipe.close() +