Learner
Learner

Reputation: 483

How to check whether file in perforce workspace is in sync with given label or not?

I am looking for command which will retrieve the result whether file inside a perforce work space is synced with given label. I searched on net and found commands like:

p4 sync -n @labelname
p4 files @labelname
p4 labels

But none of them is serving my purpose.

So, please help me out and suggest how I can check weather file in Perforce work space is in sync with given label or not.

Upvotes: 1

Views: 616

Answers (1)

sferencik
sferencik

Reputation: 3249

p4 sync -n @labelname is close, except you haven't specified the file path. Please use p4 sync -n [PATH]@labelname, e.g. p4 sync -n ...@labelname.

If you're synced, the output will be ...@labelname - file(s) up-to-date..

Upvotes: 1

Related Questions