Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D36FB7B89 for ; Fri, 19 Aug 2011 10:38:07 +0000 (UTC) Received: (qmail 40194 invoked by uid 500); 19 Aug 2011 10:38:05 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 40051 invoked by uid 500); 19 Aug 2011 10:37:40 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 39934 invoked by uid 99); 19 Aug 2011 10:37:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 10:37:29 +0000 X-ASF-Spam-Status: No, hits=-1.4 required=5.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaiod-ooo-dev@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 10:37:21 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QuMRe-0004XG-SY for ooo-dev@incubator.apache.org; Fri, 19 Aug 2011 12:36:58 +0200 Received: from 31.18.48.81 ([31.18.48.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Aug 2011 12:36:58 +0200 Received: from mst by 31.18.48.81 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Aug 2011 12:36:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ooo-dev@incubator.apache.org From: Michael Stahl Subject: Re: A point on the OOo code Date: Fri, 19 Aug 2011 12:36:46 +0200 Lines: 67 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 31.18.48.81 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 In-Reply-To: On 19.08.2011 08:21, eric b wrote: > Hi, > > > My starting point was : I'm used to the OOo source code, but I do not > know how to retrieve an old cws. In fact, I don't know at all what do .. > > We suppose that I currently got an hg blob, containing until DEV300_m93 > (which is sufficient for my needs / tests). Add that I know how to > extract a milestone, compile it, and create diffs. > > > Q1 : is it possible to explain a dummy like me : > > - how to download the current code (the OOo milestone we'll take as > starting point), using svn (only the instruction with the right URL is > ok for me) > > Note : even if the tree is not complete, but what is the command, or > what will be the command ? don't know (AFAIK code is not yet imported?) > Q2 : how to connect the hg code to the svn one ? what do you mean by "connect"? how to migrate the not-yet-integrated code in CWSes? > Q3 : how to retrieve an old cws and extract the diff ? I read the wiki, > and found nothing usefull on the mercurial side, and be able to retrieve > something in the history is essential. i always do something like "hg log | less" and then search for the CWS name; the first commit that is found is usually the merge commit that integrates the CWS into the master. you can get all the changes that were made in the CWS by doing a "hg diff" of this commit against the parent that corresponds to the master (in almost all cases this is the first parent). for example for sb111 the integration merge is 019ac597e5e0. the -c option to diff uses the first parent as base revision, so you can get all of the changes introduced by the CWS by "hg diff -c 019ac597e5e0". if it's the second parent then i guess you would need something like "hg diff -r $second_parent_id -r $child_id". if you want to see the individual commits that were introduced by the CWS then it's a bit more complicated; at OOo we have always used the convention to put the CWS name into the commit message, so the easiest way is to just search in the log for the CWS name, that should find all commits. there are also GUI tools that make this kind of thing more convenient; i've only used "hgview" so far, it's a bit slow on our big repo and eats lots of RAM but it is very useful. http://www.logilab.org/project/hgview > Action Item : I'm volunteer to make a summary and add the information on > the Apache OpenOffice.org wiki. > > > Thanks in advance for any help ! > Eric >