Jump to content


What is wrong with my remote origin spec

dvcs p4

  • Please log in to reply
11 replies to this topic

#1 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 14 April 2017 - 12:17 AM

Hi,
I'm using Helix DVCS at the command line, and have configured my origin remote spec as follows:
DepotMap:
        //Project/dev_2_0/... //Project/dev_2_0/...
        //Project/dev_2_0/lib/Boost/mac/... //Vendors/main/Boost/1_63_0/mac/...
        //Project/dev_2_0/lib/Boost/win/... //Vendors/main/Boost/1_63_0/win/...
        //Project/dev_2_0/lib/Boost/boost/... //Vendors/main/Boost/1_63_0/boost/...
        //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/... //Vendors/main/FileMaker/FMPlugInSDK/...
        //Project/dev_1_0/... //Project/dev_1_0/...
        //Project/dev_1_0/lib/Boost/boost/... //Vendors/main/Boost/1_57_0/boost/...
        //Project/dev_1_0/lib/Boost/mac/... //Vendors/main/Boost/1_57_0/mac/...
        //Project/dev_1_0/lib/Boost/win/... //Vendors/main/Boost/1_57_0/win/...
        //Project/dev_1_0/shared/... //Shared/main/...
        //Project/dev_1_0/lib/FileMaker/FMPlugInSDK/... //Vendors/main/FileMaker/FMPlugInSDK/...

ArchiveLimits:
        //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/... 1
        //Project/dev_1_0/lib/FileMaker/FMPlugInSDK/... 1

After I make my changes in my dev_1_0 stream, I attempt to 'p4 push', but I get the following message instead of a success message:

Change 4062 performs a move/add on //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1, but the parameters of this fetch, push, or zip command include only part of the full action. Specify a wider view to include both the source and target of the change, or specify a narrower view to exclude both the source and target of the change.

What is wrong with my remote spec?

#2 p4steph

p4steph

    Member

  • Members
  • PipPip
  • 19 posts

Posted 14 April 2017 - 12:35 AM

you might be running into a narrow cloning issue.the paths/files probably include integrations (deep history) from a part of your depot that isn't included in the scope of your specs.
if you don't care about fetching those files from way back when, you can try using the -I argument with the push 
p4 push [-p target -I]The -I flag excludes integration records for the new revisions.

Steph TurnerSwerveLogic


    On Thursday, April 13, 2017 5:20 PM, AhiyaHiya <perforce-user-forum@forums.perforce.com> wrote:


Posted on behalf of forum user 'AhiyaHiya'.

Hi,
I'm using Helix DVCS at the command line, and have configured my origin
remote spec as follows:
DepotMap:
��������//Project/dev_2_0/...
//Project/dev_2_0/...
��������//Project/dev_2_0/lib/Boost/mac/...
//Vendors/main/Boost/1_63_0/mac/...
��������//Project/dev_2_0/lib/Boost/win/...
//Vendors/main/Boost/1_63_0/win/...
��������//Project/dev_2_0/lib/Boost/boost/...
//Vendors/main/Boost/1_63_0/boost/...
��������//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/...
//Vendors/main/FileMaker/FMPlugInSDK/...
��������//Project/dev_1_0/...
//Project/dev_1_0/...
��������//Project/dev_1_0/lib/Boost/boost/...
//Vendors/main/Boost/1_57_0/boost/...
��������//Project/dev_1_0/lib/Boost/mac/...
//Vendors/main/Boost/1_57_0/mac/...
��������//Project/dev_1_0/lib/Boost/win/...
//Vendors/main/Boost/1_57_0/win/...
��������//Project/dev_1_0/shared/...
//Shared/main/...
��������//Project/dev_1_0/lib/FileMaker/FMPlugInSDK/...
//Vendors/main/FileMaker/FMPlugInSDK/...

ArchiveLimits:
��������//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/...
1
��������//Project/dev_1_0/lib/FileMaker/FMPlugInSDK/...
1

After I make my changes in my dev_1_0 stream, I attempt to 'p4 push',
but I get the following message instead of a success message:

Change 4062 performs a move/add on
//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1, but the
parameters of this fetch, push, or zip command include only part of the full
action. Specify a wider view to include both the source and target of the
change, or specify a narrower view to exclude both the source and target of the
change.

What is wrong with my remote spec?



--
Please click here to see the post in its original format:
  http://forums.perfor...ote-origin-spec
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user



_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user


#3 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 14 April 2017 - 03:33 AM

View PostAhiyaHiya, on 14 April 2017 - 12:17 AM, said:

Change 4062 performs a move/add on //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1, but the parameters of this fetch, push, or zip command include only part of the full action. Specify a wider view to include both the source and target of the change, or specify a narrower view to exclude both the source and target of the change.

Run:  p4 filelog -1 //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1

What does it say?

#4 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 14 April 2017 - 06:06 AM

Run:  p4 filelog -1 //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1

What does it say?



jaimerios@jaime-mbp:~/Development/Perforce/Project_local4$ p4 filelog -1 //Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip#1
//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip
... #1 change 4062 move/add on 2013/07/28 by jaimerios@jaimerios_Vendors (binary+F) 'Vendors: Rename/move file(s) Fi'

#5 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 14 April 2017 - 07:35 AM

There should be a "... ... moved from" line immediately following that.  Is it possible that this file got moved from someplace that you don't have permission to view?

#6 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 16 April 2017 - 05:27 PM

So now,

//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip
... #1 change 4062 move/add on 2013/07/28 by jaimerios@jaimerios_Vendors (binary+F) 'Vendors: Rename/move file(s) Fi'
... ... moved from //Project/dev_2_0/lib/FileMaker/EFPSDK/mac/EFPSDKMac.zip#1,#2

Which I believe was the desired affect, but I'm still unable to push up anything to my shared server.

So, I changed the remote spec to remove any reference to all depots outside of the main project depot.

I did this because, although it's cool that I could get access to the other depot paths, I can't make sense of how to set this up properly... so, I guess some more experimenting... maybe?

#7 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 17 April 2017 - 04:03 AM

View PostAhiyaHiya, on 16 April 2017 - 05:27 PM, said:

So now,

//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/EFPSDK/mac/EFPSDKMac.zip
... #1 change 4062 move/add on 2013/07/28 by jaimerios@jaimerios_Vendors (binary+F) 'Vendors: Rename/move file(s) Fi'
... ... moved from //Project/dev_2_0/lib/FileMaker/EFPSDK/mac/EFPSDKMac.zip#1,#2

That seems like it SHOULD work, because both halves of the action are mapped in your remote, but I do notice that they end up in different depots.  I can't think of a semantic reason that should matter, but I wonder if "p4 push" breaks things down at the depot boundary when it's doing its processing.

What if you add this line to your remote?

//Project/dev_2_0/lib/FileMaker/EFPSDK/... //Vendors/main/FileMaker/EFPSDK/...


#8 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 20 April 2017 - 01:53 PM

Well, an interesting thing I noticed, before making any more changes: when I switch between the streams, the FileMaker folder is only listed on the dev_1_0 stream. Meaning, that when I switch from dev_1_0 to dev_2_0, I noticed that lib/FileMaker doesn't exist, which makes me think that p4 only allows FileMaker to exist in one stream, even though both streams need access to those files.

Is this by design or a bug in p4?

#9 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 20 April 2017 - 05:11 PM

Your remote has duplicate entries for those files:

//Project/dev_2_0/lib/FileMaker/FMPlugInSDK/... //Vendors/main/FileMaker/FMPlugInSDK/...
//Project/dev_1_0/lib/FileMaker/FMPlugInSDK/... //Vendors/main/FileMaker/FMPlugInSDK/...

so the last one wins.  I don't think you can use a remote spec to duplicate files in a local server (nor do I think you'd really want to, it'd get pretty messy when you pushed changes).

On the local side I'd suggest using an "import" to have the files show up in both streams.  E.g. since you've already pulled them into the dev_1_0 depot path, add this line to your dev_2_0 stream Paths:

 import lib/FileMaker/FMPluginSDK/... //Project/dev_1_0/lib/FileMaker/FMPluginSDK/...

If dev_2_0 is a child of dev_1_0, you don't need to specify the depot path -- the default for an import is to mirror files from the corresponding path in the parent stream, but you can also manually specify an arbitrary depot path.

#10 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 20 April 2017 - 06:31 PM

When I tried to insert
import lib/FileMaker/FMPluginSDK/... //Project/dev_1_0/lib/FileMaker/FMPluginSDK/...
Into my remote spec, I get the following error:
Error in remote specification.
[...]
Wrong number of words for field 'DepotMap'.

So, import is either not available in a remote spec or I'm typing something wrong.

#11 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 611 posts

Posted 20 April 2017 - 09:20 PM

Run:

p4 stream //Project/dev_2_0


#12 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 21 April 2017 - 01:32 AM

Oh, I see. I had to do the import setting in the stream specification within the p4v.app.





Also tagged with one or more of these keywords: dvcs, p4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users