Re: Converting Perforce to CVS

2001-02-28 Thread Anton Berezin

On Mon, Feb 26, 2001 at 02:31:33PM -0800, John Wilson wrote:
 On Sun, 25 Feb 2001 22:00:31 -0600, Michael C . Wu wrote:
  On Sun, Feb 25, 2001 at 09:17:38AM -0800, John Wilson scribbled:

 If you still have the Perforce-CVS conversion script, I would be
 very grateful if you could e-mail it to me.

  Such a script is available for download on www.perforce.com.

 No, there isn't.  They have a CVS to Perforce script, not Perforce to
 CVS (please don't ask who in their right mind would want to go from
 Perforce to CVS :)

 Well, if Anton doesn't respond, I guess I'll just have to write one
 myself...

Well, it took a month for you request it...  Not that I was deliberately
waiting the same period before sending it, but..   ;-)


http://www.tobez.org/download/p42cvs

Beware it is very unpolished and probably requires your inspection
before using it.  I used it once, and it worked for me.

Cheers,
+Anton.
-- 
May the tuna salad be with you.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Perforce to CVS

2001-02-26 Thread John Wilson

No, there isn't.  They have a CVS to Perforce script, not Perforce to CVS
(please don't ask who in their right mind would want to go from Perforce to
CVS :)

Well, if Anton doesn't respond, I guess I'll just have to write one
myself...

John



On Sun, 25 Feb 2001 22:00:31 -0600, Michael C . Wu wrote:

  On Sun, Feb 25, 2001 at 09:17:38AM -0800, John Wilson scribbled:
  | If you still have the Perforce-CVS conversion script, I would be very
  | grateful if you could e-mail it to me.
  
  Such a script is available for download on www.perforce.com.
  
  | On Tue, 9 Jan 2001 09:13:39 +0100, Anton Berezin wrote:
  |   On Sat, Jan 06, 2001 at 03:06:20PM -0800, John Wilson wrote:
  |I apologize in advance, as this is not strictly a FreeBSD-related
  | question,
  |but I know that a lot of FreeBSD'ers use CVS as well as Perforce,
so
  | here
  |goes...
  |
  |What is the easiest way to convert a P4 source repository to CVS,
while
  |preserving revisions, history, log messages, etc?   Both systems
seem
  | to use
  |RCS, but is it as simple as copying the files?   Are there any
caveats?
  | 
  |   
  |   I have one script, but it does not handle branches (the project I
was
  |   converting did not have any).  I can mail it to you if you want. 
The
  |   branch handling should be rather similar to binary files handling,
which
  |   the script already performs.
  
  -- 
  +--+
  | [EMAIL PROTECTED] | [EMAIL PROTECTED] |
  | http://peorth.iteration.net/~keichii | Yes, BSD is a conspiracy. |
  +--+





___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Perforce to CVS

2001-02-25 Thread John Wilson

Dear Anton,

If you still have the Perforce-CVS conversion script, I would be very
grateful if you could e-mail it to me.

Thanks in advance

John Wilson





On Tue, 9 Jan 2001 09:13:39 +0100, Anton Berezin wrote:

  On Sat, Jan 06, 2001 at 03:06:20PM -0800, John Wilson wrote:
   I apologize in advance, as this is not strictly a FreeBSD-related
question,
   but I know that a lot of FreeBSD'ers use CVS as well as Perforce, so
here
   goes...
   
   What is the easiest way to convert a P4 source repository to CVS, while
   preserving revisions, history, log messages, etc?   Both systems seem
to use
   RCS, but is it as simple as copying the files?   Are there any caveats?

  
  I have one script, but it does not handle branches (the project I was
  converting did not have any).  I can mail it to you if you want.  The
  branch handling should be rather similar to binary files handling, which
  the script already performs.
  
  Cheers,
  ^Anton.
  -- 
  May the tuna salad be with you.





___
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Perforce to CVS

2001-02-25 Thread Michael C . Wu

On Sun, Feb 25, 2001 at 09:17:38AM -0800, John Wilson scribbled:
| If you still have the Perforce-CVS conversion script, I would be very
| grateful if you could e-mail it to me.

Such a script is available for download on www.perforce.com.

| On Tue, 9 Jan 2001 09:13:39 +0100, Anton Berezin wrote:
|   On Sat, Jan 06, 2001 at 03:06:20PM -0800, John Wilson wrote:
|I apologize in advance, as this is not strictly a FreeBSD-related
| question,
|but I know that a lot of FreeBSD'ers use CVS as well as Perforce, so
| here
|goes...
|
|What is the easiest way to convert a P4 source repository to CVS, while
|preserving revisions, history, log messages, etc?   Both systems seem
| to use
|RCS, but is it as simple as copying the files?   Are there any caveats?
| 
|   
|   I have one script, but it does not handle branches (the project I was
|   converting did not have any).  I can mail it to you if you want.  The
|   branch handling should be rather similar to binary files handling, which
|   the script already performs.

-- 
+--+
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
| http://peorth.iteration.net/~keichii | Yes, BSD is a conspiracy. |
+--+

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Converting Perforce to CVS

2001-01-06 Thread Peter Wemm

John Wilson wrote:
 I apologize in advance, as this is not strictly a FreeBSD-related question,
 but I know that a lot of FreeBSD'ers use CVS as well as Perforce, so here
 goes...
 
 What is the easiest way to convert a P4 source repository to CVS, while
 preserving revisions, history, log messages, etc?   Both systems seem to use
 RCS, but is it as simple as copying the files?   Are there any caveats?   
 
 Thanks,
 
 John

perforce only uses the rcs files to store discrete file revisions, the rest
of the metadata is in the db.* files (log messages, branches, views, etc).

Generally, the "most correct" way to do a conversion is to generate a list
of changes and run through them one at a time - checking them out of one
repo and into the other, and then tweak the metadata (timestamp, author).

Going from cvs to perforce is pretty hard as cvs does not maintain enough
information to make a faithful conversion without some guesses and heuristics.

Going the other way should be pretty simple as you have a list of discrete
changes starting at change 1, then 2, etc.  Check them out one at a time
and check the changes into cvs.  It will take a while but it will work if
you get your scripting right.  No, I dont know of anybody who has actually
wanted to go this way before, so I am not aware of any pre-canned p4-cvs
scripts.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message