How to include added and removed files to a unified diff of a CL in perforce

I want to create a unified diff or patch using p4 describe -du or p4 diff2 -u, to apply later with patch utility. But the problem I encounter that these commands skip the content of added/removed files. The closest I found so far is to use p4 describe -adu and then process added files content … Read more

How to copy a Read-Only file and make the copy writable with a single cp command?

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The –no-preserve and –preserve seemed to be good candidates, except that they should “and” the mode flags, while what I am looking for is something that will “or” them (add +w mode). More … Read more

Can’t Execute Binary on Ubuntu

I can’t believe I’m asking this…clearly I’m in rare form today. Trying to setup a new Ubuntu machine and just downloaded ‘p4’ (Perforce command line client). It’s a single file download – a statically-linked binary executable, so I just did: wget http://www.perforce.com/downloads/perforce/r09.2/bin.linux26x86/p4 …right into /usr/bin. Simple enough. Except: root@aj-ubuntu:/usr/bin# ll p4 -rwxr-xr-x 1 root root … Read more

Perforce P4 client: how can I transfer my workspaces and bookmarks to a new computer

I have many client-specs and workspaces defined for many different Perforce servers. I got a new computer and installed P4V client, but I can’t see any of my client-specs because they are all specific to the old computer. Is there any way to migrate this information without laboriously re-creating each client-spec and workspace on the … Read more