[p4] Tips for syncing with SVN

Stephen Vance steve at vance.com
Wed Nov 29 20:28:23 PST 2006

Create a Perforce client and a subversion workspace that are exactly 
overlaid. Populate the Perforce one with 'synk -k' populating your have 
list but not the actual files on your disk. Do your svn get. Apply the 
techniques from TechNote #2 to determine what's changed. Submit. Before 
next time, delete all the files.


R. Tyler Ballance wrote:
> There are a few open source projects I deal with on a daily basis,  
> and for some of my work I need to maintain custom builds and/or patch  
> sets, and I was wondering if anybody had come up with any decent  
> solution to keeping perforce quasi-in-sync with a subversion directory.
> Take the Mono Project (http://www.mono-project.org) for example, I  
> would like to be able to sync from their AnonSVN service to my  
> perforce repository (//contrib/mono-project/...) every week or so,  
> but I don't want to simply obliterate any of my patches that I may  
> still be testing. I've tried simply adding the entire tree (.svn/*  
> included) and that doesn't seem to work, as I need to essentially  
> `find . -name "*" -exec p4 edit {} \;` right before I call `svn  
> update` which is terribly time consuming and error prone depending on  
> the size of the SVN source tree I want to keep in sync with.
> I can count the number of either open source, or client subversion  
> repositories I want to keep in sync with on both hands, but its still  
> something I'd like to make easier and more reliable. As of yet, I've  
> only seen tips/tools for importing a subversion repo into perforce,  
> not any sort of "sync" tools to keep two repositories "separate but  
> equal" ;)
> Cheers
> R. Tyler Ballance: Lead Mac Developer at bleep. software
> contact: tyler at bleepsoft.com | jabber: tyler at jabber.geekisp.com
> _______________________________________________
> 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