Merge branch 'nd/status-long'
[gitweb.git] / t / lib-git-p4.sh
index 482eeac4d9b0d67c0930ae43031cae99533c7813..7061dce7e5de2f67e60fe6c42c40519f29cad4a1 100644 (file)
@@ -116,3 +116,20 @@ marshal_dump() {
        EOF
        "$PYTHON_PATH" "$TRASH_DIRECTORY/marshal-dump.py"
 }
+
+#
+# Construct a client with this list of View lines
+#
+client_view() {
+       (
+               cat <<-EOF &&
+               Client: client
+               Description: client
+               Root: $cli
+               View:
+               EOF
+               for arg ; do
+                       printf "\t$arg\n"
+               done
+       ) | p4 client -i
+}