1 Mar 2004 16:15
[p4] How to "sync" a client workspace 100%?
Max.Ritter <Max.Ritter <at> brainlab.com>
2004-03-01 15:15:10 GMT
2004-03-01 15:15:10 GMT
Hello, I have a client workspace with about 200 directories and about 7000 files. After working in it for a while there are a number of empty directories (rmdir option was not set when deleting files), a lot of temporary and generated files, etc. How can I get the workspace into a state that matches the depot 100%, i.e., clean up everything that is not in the depot? Before cleaning it would of course be nice to see a list of things that will be deleted. Is there a way to do this elegantly with Perforce commands? Thanks in advance, Max. _______________________________________________ perforce-user mailing list - perforce-user <at> perforce.com http://maillist.perforce.com/mailman/listinfo/perforce-user
Cheers,
Max.
> Chuck Karish wrote:
>
> > Arnt Gulbrandsen schrieb:
> >
> >> p4 have ... | sed 's/.* - //' > /tmp/a
> >> find `/bin/pwd` -type f -print > /tmp/b
> >> cat /tmp/a /tmp/b /tmp/b | sort | uniq -u
> >
> >
> > Replace one b by a on that line. Sorry.
> >
> > The code actually does something like this:
> >
> > 1. Make a list of all files perforce knows
> > 2. Make a list of all files.
> > 3. Make a third list containing list 1 twice and list 1 once.
> > 4. See what's present exactly once in that final list. (Anything that
> > was in list 1 will be present twice.)
RSS Feed