Jump to content


dvcs with multiple remote

dvcs

  • Please log in to reply
6 replies to this topic

#1 Kei Son

Kei Son

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 30 May 2015 - 04:10 AM

Let's say I have two remote spec in my local server.

The one is `origin` which is mapped to contain my source code and the other one is `origin2` which have binary files. First one needs to be with, full history, but `origin2` doesn't need to come with full history, because it is just assets to run my application. Artists may need to have full history, but not on me.

So I did;

p4 fetch -r origin
p4 fetch -r origin2 -m 1

It works well as I expected.

So what I curious is, can I take this as normal practice to fit my need? Or bad or not defined pattern?

#2 Kei Son

Kei Son

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 03 June 2015 - 12:11 AM

Sorry, I slightly, but effectively modified an above post. (origin -m 1 -> origin2 -m 1)
Any suggestion?

#3 Kei Son

Kei Son

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 09 June 2015 - 06:41 AM

Any ideas?

#4 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 11 June 2015 - 08:41 PM

Hi Kei Son,

I am not sure I am fully understanding what you are asking.

The fetch command copies files from a remote server into the server to which you are currently connected.
Thus your command:

	p4 fetch -r origin2 -m 1

will fetch the most recent 1 revision of each file in the 'origin2' remote spec. Since you do not need full history, you would run the above command if you just want 1 latest revision from 'origin2'.  Your 'origin' and 'origin2' have a shared history and what you described seems fine and normal.

Here are more references on how to use fetch:

  - Distributed Development Using Fetch and Push
  http://www.perforce....#superuser.dvcs

  - 'p4 fetch' Command Reference
  http://www.perforce....f/p4_fetch.html

#5 Kei Son

Kei Son

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 11 June 2015 - 10:39 PM

So what you confirmed is that I can normally use two or more remote specs at the same time in the same server with different history options, right?
Thanks!

#6 P4Shimada

P4Shimada

    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 11 June 2015 - 11:32 PM

Yes. If you look at the link to the admin guide I sent in my previous message under 'Distributed Development Using Fetch and Push', there is an example in the beginning with two remote depots sharing code (files and history) with another server.

#7 Kei Son

Kei Son

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 15 June 2015 - 07:05 AM

I assumed that separated servers can make their own remote spec on the same shared server, but I thought it's different case. Anyway, you confirmed it, and I am happy :)





Also tagged with one or more of these keywords: dvcs

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users