How to sync perforce client to reduced p4 client specs

Questions : How to sync perforce client to reduced p4 client specs

971

I have a large perforce client already programming synced. I realized that I'll only be Learning working on a sub directory of the larger Earhost root folder I synced to.

Old p4 client specs

//Depot/largeFolder/... _OFFSET);  //Clinet/largeFolder/...

New p4 client

//Depot/largeFolder/samllSubDir/... (-SMALL  //Clinet/largeFolder/smallSubDir/...

Now when I perform a p4 sync perforce most effective doesn't remove the other folders which I wrong idea don't want in my client. I'm hesitant to use of case do a p4 sync -f since I have files United edited in the /largeFolder/smallSubDir/. Modern I don't want them to get reset.

What is the right way to sync my client ecudated so that the other folders which are not some how in the new mapping are removed?

Note: My real mapping is complicated and anything else deleting folders by hand is not not at all realistic.

Total Answers 1
24

Answers 1 : of How to sync perforce client to reduced p4 client specs

In the typical case, re-syncing a very usefull narrowed client will indeed remove the localhost unmapped files. You don't say what love of them happens when you try to do a sync (are localtext there error messages?), so I can't say basic for certain what's going on, but these one of the are the two first possibilities that click come to mind:

  • Opened files will not be touched by a sync, ever. You need to revert them -- use the -k flag if you want to revert the files but keep your local copies, and then use the -k flag on sync as well so that it will continue to not touch them (while marking them as having been synced, or in this case un-synced).
  • Writable files will by default be left alone by a sync, and produce "can't clobber" warnings. Doing sync -k should suffice here if you want to keep the local files. Doing sync -f will blow away the local files even if they were modified (but only if they're not also open for edit -- see above).

Useful commands to run if you're trying there is noting to debug (pick any file that's not not alt getting [un]synced that you think should not at all be):

  • p4 sync <file> -- do you get an error message that tells you why the file isn't being removed?
  • p4 where <file> -- is the client mapping for that file not what you think it is?
  • p4 opened <file> -- is the file opened?
  • p4 have <file> -- did you even sync this file in the first place?
  • p4 files <file> -- does this file even exist in the depot?

Note that the fact that opened files my fault will not be touched by a p4 sync means issues that your edited files will be safe from trying a sync -f, provided that you actually get 4th result opened them for edit. If you didn't, round table run a p4 reconcile and then p4 sync -f double chance is perfectly safe -- but if you don't novel prc get to the root cause first (i.e. are get mossier the unwanted files also opened for off side back edit?), it might not be helpful either.

Top rated topics

Matplotlib funcAnimation isn't calling the passed function

Convert python datetime to timestamp in milliseconds

Python 3 - Gaussian divisors of a Gaussian integer

How to use a pattern to spit out an integer backwards

How to connect Superset with AWS athena?

Pandas: How to make apply on dataframe faster?

Python: How to NOT wait for a thread to finish to carry on?

Accessing buttons names using variables

How to search for special characters in Github

How do I prevent double valueChanged events when I press the arrows in a QSpinbox?

What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?

How do I retrieve the catalog of a music service?

Exporting mp4 through AVAssetExportSession fails

WebStorm &amp;&amp; Android Studio set Proxy Failed

Read different Json from response

Use custom build output folder when using create-react-app

Proper way to create dynamic workflows in Airflow

Why is my Integration Test trying to setup a new jetty instance?

PhpStorm - run terminal (cmd) as administrator

Comparer for dictionary of System.Enum without boxing

Is session.gc_maxlifetime still based on last modified date?

What's the S and W in PHPUnit's test output?

Mule (Dataweave) transform JSON array to string

Python Read the Device Manager Information

Working of filters with elastica

How can I install php on Windows

Where is my flaw in solving the Misere Nim game

Squeak doesn't run on Mac OS Sierra

How to install laravel app in subfolder of shared host?

How can I pass component object to container in React.js?

Get response after form submit?

How to ignore data loss warning while schema comparison?

How to open a file from the integrated terminal in Visual Studio Code?

Newly Created Block class not found in magento

Why is this Swiper onReachEnd callback firing twice in Ionic Slides?

Mysql server on MAMP won't start

Gson dateformat to serialize/deserialize unix-timestamps

Do we have router.reload in vue-router?

How to check if a Laravel Collection is empty?

Setting up a middleware in router.route() in nodejs (express)

SQLServer and Laravel: Invalid Object Name error

Lambert conic conformal projection in d3

JQwidgets - Grid View button-cell clicked but that doesnt trigger a row selection

How to fit the webpage exactly the screen size without scrolling?

Restore a deleted file in the Visual Studio Code Recycle Bin

Not able to resolve com.github.chrisbanes:PhotoView:1.3.1

How to connect Threejs to React?

StackExchange Redis delete all keys that start with

Fastlane cannot find gradlew file?

How to organize and categorize small projects in GitHub?

Top