@matheusbsbs / matheus-bagliano / commits / b1561ee256
Fork 0

Another (potentially life-saving) idea for submit --direct

Signed-off-by: Simon Hausmann <simon@lst.de>

Simon Hausmann committed May 20, 2007 at 23:52 UTC b1561ee25628c074b3afac738ead387181d3b311
1 file changed +6
contrib/fast-import/git-p4
+6
@@ -10,6 +10,12 @@
10 # TODO: * implement git-p4 rollback <perforce change number> for debugging
11 # to roll back all p4 remote branches to a commit older or equal to
12 # the specified change.
13 +# * for git-p4 submit --direct it would be nice to still create a
14 +# git commit without updating HEAD before submitting to perforce.
15 +# With the commit sha1 printed (or recoded in a .git/foo file?)
16 +# it's possible to recover if anything goes wrong instead of potentially
17 +# loosing a change entirely because it was never comitted to git and
18 +# the p4 submit failed (or resulted in lots of conflicts, etc.)
19 #
20
21 import optparse, sys, os, marshal, popen2, subprocess, shelve