[p4] A tool to list all files that haven't been added
David Faison
dfaison at photon.com
Thu Jun 1 09:52:41 PDT 2006
On windows, you could type the following:
dir /a-d /b /s | p4 -x- fstat | find "no such file"
And it would only list files that have not been added to perforce.
This would also correctly ignore files that have been added but not yet
submitted to Perforce.
David Faison
Photon Research Associates
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Taylor Brown
Sent: Thursday, June 01, 2006 11:09 AM
To: perforce-user at perforce.com
Subject: [p4] A tool to list all files that haven't been added
Is there a GUI tool out there (or a way to do this in the Perforce GUIs)
that allows me to see, at a glance, the difference between my perforce
depot and my local drive? In particular, I need an easy way to see
which files I have forgotten to add to Perforce. When you all need to
guarantee that your checkin won't miss any new files, do you just
recursively add files that match particular wildcards? For example:
Recursiveadd.bat *.cpp
Recursiveadd.bat *.h
...
This could work, but I'm still worried it could miss the oddly named new
file.
I'd love to have a tool to recommend to our devs as a best practice
before they do their checkin. I am guilty of performing a checkin,
syncing to a clean branch, testing, and then adding the files I forgot.
Although I work in my own branch, I still don't like the idea that I'm
breaking the branch until I get all my files checked in. I'd rather it
be more atomic.
What I _really_ want (and now I'm dreaming) is a Beyond Compare plugin
where one side is my local file system and the other is my Perforce
depot...Now THAT would be a tool.
Many thanks for any advice or assistance,
Taylor
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list