[p4] How to know where a pending branch originated?

Robert Cowham robert at vaccaperna.co.uk
Tue Apr 14 06:35:45 PDT 2015


An alternative: p4 resolved

$ p4 copy README.md fred.txt
//guest/some/path/test/fred.txt#1 - branch/sync from
//guest/some/path/test/README.md#1,#3
$ p4 opened ...
//guest/some/path/test/fred.txt#1 - branch default change (text)
$ p4 resolved fred.txt
/Users/rcowham/workspace/fred.txt - branch from
//guest/some/path/test/README.md#1,#3


:)


On 14/04/2015 00:46, "John W" <jwdevel at gmail.com> wrote:

>Great, thank you.
>
>-John
>
>On 4/13/15, Gabor Maghera <gmaghera at gmail.com> wrote:
>> Try using p4 fstat with these options:
>>
>> $ p4 fstat -Or -T resolveBaseFile0
>> //Sandbox/Users/gabor.maghera/Area51/anothertest.txt
>> ... resolveBaseFile0 //Sandbox/Users/gabor.maghera/Area51/bar.txt
>>
>>
>> --
>> Gabor
>>
>> On Mon, Apr 13, 2015 at 11:53 AM, John W <jwdevel at gmail.com> wrote:
>>
>>> I feel like I've been using p4 way to long to not know this answer,
>>> but even quite a bit of searching has not helped...
>>>
>>> Suppose I copy a file
>>>
>>>     $ p4 copy foo bar
>>>
>>> Now, it shows up in "opened"
>>>
>>>     $ p4 opened
>>>      //depot/path/to/bar#1 - branch change 12345 (text)
>>>
>>> Great; no problems so far.
>>> Now, suppose I forget that "bar" originally came from "foo".
>>>
>>> I have this file, "bar," opened for branching, and I want to know from
>>> where it originated.
>>>
>>> How the heck do I get that information (preferably from the
>>>commandline)?
>>>
>>> Something somewhere must know this information, because it will be
>>> recorded in the server when this change is submitted. But how do I get
>>> that info *before* it is submitted?
>>>
>>> Thanks
>>> -John
>>> _______________________________________________
>>> perforce-user mailing list  -  perforce-user at perforce.com
>>> http://maillist.perforce.com/mailman/listinfo/perforce-user
>>>
>>
>_______________________________________________
>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