summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <shausman@trolltech.com>2007-01-31 09:49:41 +0100
committerLibravatar Simon Hausmann <shausman@trolltech.com>2007-01-31 09:49:41 +0100
commit06bb04454fb91fbc144ed2b3abb3492c923f98f5 (patch)
tree82e504196be66fd738468c1e772dae80dc83d5c3 /contrib
parentAdded basic support for specifying the depot path to import from as well as t... (diff)
downloadtgif-06bb04454fb91fbc144ed2b3abb3492c923f98f5.tar.xz
Slightly improved help usage output and made specifying the trailing slash for the depot path optional.
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fast-import/p4-fast-export.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py
index abd6da4668..8df3d73392 100644
--- a/contrib/fast-import/p4-fast-export.py
+++ b/contrib/fast-import/p4-fast-export.py
@@ -20,8 +20,10 @@ import os, string, sys
if len(sys.argv) != 2:
sys.stderr.write("usage: %s //depot/path[@revRange]\n" % sys.argv[0]);
sys.stderr.write("\n example:\n");
- sys.stderr.write(" %s //depot/my/project -- to import everything\n");
- sys.stderr.write(" %s //depot/my/project@1,6 -- to import only from revision 1 to 6\n");
+ sys.stderr.write(" %s //depot/my/project/ -- to import everything\n");
+ sys.stderr.write(" %s //depot/my/project/@1,6 -- to import only from revision 1 to 6\n");
+ sys.stderr.write("\n");
+ sys.stderr.write(" (a ... is not needed in the path p4 specification, it's added implicitly)\n");
sys.stderr.write("\n");
sys.exit(1)
@@ -34,6 +36,9 @@ try:
except ValueError:
changeRange = ""
+if not prefix.endswith("/"):
+ prefix += "/"
+
def describe(change):
output = os.popen("p4 describe %s" % change).readlines()