avoid the excessive use of tags and just keep one p4 tag around
[fast-export/barak.git] / p4-debug.p4
blob8fb159fd6a3e832b62dc24376722b738858ea539
1 #!/usr/bin/python
3 # p4-debug.py
5 # Author: Simon Hausmann <hausmann@kde.org>
6 # License: MIT <http://www.opensource.org/licenses/mit-license.php>
8 # executes a p4 command with -G and prints the resulting python dicts
10 import os, string, sys
11 import marshal, popen2
13 cmd = ""
14 for arg in sys.argv[1:]:
15 cmd += arg + " "
17 pipe = os.popen("p4 -G %s" % cmd, "rb")
18 try:
19 while True:
20 entry = marshal.load(pipe)
21 print entry
22 except EOFError:
23 pass
24 pipe.close()