Discussion:
[p4] Reduce HD space
Michael Mirman
2017-03-07 15:44:19 UTC
Permalink
Or
set P4CONFIG=.p4config
echo P4CLIENT=My_workspace > .p4config

Ref: https://www.perforce.com/perforce/r16.2/manuals/cmdref/P4CONFIG.html
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Robert Cowham
Sent: Tuesday, March 07, 2017 10:30 AM
Subject: Re: [p4] Reduce HD space
Posted on behalf of forum user 'Robert Cowham'.
set P4CLIENT=My_workspace
--
http://forums.perforce.com/index.php?/topic/5209-reduce-hd-space
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com
Michael Mirman
2017-03-07 15:49:05 UTC
Permalink
The count (S3) starts only after the file type changes. It does not work retroactively (it's against the SCM philosophy).
If you want to remove (physically) old revisions, your only option is obliterate.
https://www.perforce.com/perforce/r16.2/manuals/cmdref/p4_obliterate.html

Some SCM admins philosophically object to this approach. I used to object to it, too, but finally outgrew this feeling. :-)
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of nux
Sent: Tuesday, March 07, 2017 10:45 AM
Subject: Re: [p4] Reduce HD space
Posted on behalf of forum user 'nux'.
Alright. Thanks for the quick respons.
I actually fixed it and was about to remove the "cry post" when I saw
the new post.
I went and set the p4config to the one for the workspace which automatically
set
it as active client.
I am able to change all the files, but there is still more than 3 revisions.
Posted Image
Anything else I need to do to update it?
--
http://forums.perforce.com/index.php?/topic/5209-reduce-hd-space
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-u
Michael Mirman
2017-03-07 16:47:19 UTC
Permalink
I'm not sure what 3/3 or 3/6 are in this message.
If I have #1-#6 of a file, I can obliterate any of those revisions, say, #1-#3, leaving #4-#6 intact.
That's from Perforce POV, of course.
Our users don’t like "holes" in the history, so we have a convention not to obliterate "in the middle" (or for that matter, sources of integrations). But that's only because we don’t like it - Perforce would happily obliterate anything. :)
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of nux
Sent: Tuesday, March 07, 2017 11:05 AM
Subject: Re: [p4] Reduce HD space
Posted on behalf of forum user 'nux'.
I think the quickest way here is to remove the whole server and reinstall and
set the new typemap to -S3 before adding anything new.
From what I can see in Obliterate, you cannot remove every rev lower then
three
from(and including latest) without checking each file before. I wouldn't
want to remove 3/3, but want to remove 3/6, keeping top three. Or am I
wrong?
--
http://forums.perforce.com/index.php?/topic/5209-reduce-hd-space
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/
Loading...