Changes between Version 14 and Version 15 of UpdatingBugzilla


Ignore:
Timestamp:
Jul 3, 2010 3:37:19 PM (14 years ago)
Author:
ddkilzer@webkit.org
Comment:

Switched from CVS to bzr for upstream Bugzilla repository.

Legend:

Unmodified
Added
Removed
Modified
  • UpdatingBugzilla

    v14 v15  
    77== Setup ==
    88
    9  * Check out Bugzilla sources from CVS (for reference).
     9 * Install bzr, bzr-fastimport and bzr-svn.  If you're using MacPorts:
    1010{{{
    11     cvs -d ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot" co -d bugzilla.cvs mozilla/webtools/bugzilla
     11    sudo port install bzr-fastimport
     12    sudo port install bzr-svn
    1213}}}
    1314
    14  * Import original Bugzilla sources from CVS into a local git repository (may take a couple of hours).
     15 * Install git and git-svn.  If you're using MacPorts:
    1516{{{
    16     rm -f ~/.cvsps/\:pserver\:anonymous@cvs-mirror.mozilla.org\:#cvsroot#mozilla#webtools#bugzilla
    17     mkdir bugzilla.git
    18     git cvsimport -d ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot" -C bugzilla.git -k mozilla/webtools/bugzilla
     17    sudo port install git-core +svn
     18}}}
     19
     20  * [https://wiki.mozilla.org/Bugzilla:Bzr Check out Bugzilla sources] from bzr.  At minimum check out trunk, the branch that contains the current version used by bugs.webkit.org and the branch that you want to merge to.
     21{{{
     22    mkdir bzr
     23    cd bzr
     24    bzr co bzr://bzr.mozilla.org/bugzilla/trunk bugzilla-trunk
     25    bzr co bzr://bzr.mozilla.org/bugzilla/3.6 bugzilla-3.6
     26    bzr co bzr://bzr.mozilla.org/bugzilla/3.4 bugzilla-3.4
     27    bzr co bzr://bzr.mozilla.org/bugzilla/3.2 bugzilla-3.2
     28    cd ..
    1929}}}
    2030
    2131 * Import BugsSite from the WebKit repository into a local git repository.
    2232{{{
    23     mkdir bugssite.git
    24     cd bugssite.git
     33    mkdir BugsSite.git
     34    cd BugsSite.git
    2535    git svn init -T trunk/BugsSite http://svn.webkit.org/repository/webkit
    2636    git svn fetch
     37    cd ..
    2738}}}
    2839
    2940 * Create a local git repository to do the merge.
    3041{{{
    31     mkdir update.git
    32     cd update.git
     42    mkdir bugzilla.git
     43    cd bugzilla.git
    3344    git init
    34     git remote add -f origin-bugssite ../bugssite.git
    35     git remote add -f origin-bugzilla ../bugzilla.git
    3645}}}
    3746
    38  * Create a .git/info/grafts file to provide artificial merge points between the two remote repositories.  NOTE: Your commit hashes may be different for tagged Bugzilla versions since git-cvsimport is not an exact science.
     47 * Import the BugsSite.git repository:
    3948{{{
    40 # BugsSite 3.2.3 merge has parents of    BugsSite r45519                      and CVS tag BUGZILLA-3_2_3
    41 4b974c2db64b5e85e72498b0c43100e2ea380a48 355650f88422025d80d5b5ca7f908d653936556e 213407d24e23561c65916e86ae186f154b086dde
    42 # BugsSite 3.0.3 merge has parents of    BugsSite r44547                      and CVS tag BUGZILLA-3_0_3
    43 355650f88422025d80d5b5ca7f908d653936556e e9b8dc46dc0a804f199a0b1c2dfa4d2112608c8a bd31477381aa6204bd5e8ed5997354ccf12b6794
    44 # BugsSite r30048 has parents of         CVS tag BUGZILLA-2_20_1
    45 92fb2f653ac5b1b4dc9e0ec6d4a3806fe7ea1e2a ba0b747bbab5807857e66e7ff8583d27f1625fa1
     49    git remote add -f BugsSite ../BugsSite.git
     50}}}
     51
     52 * Import the Bugzilla branches from bzr:
     53{{{
     54    git bzr add bugzilla-trunk ../bzr/bugzilla-trunk
     55    git bzr add bugzilla-3.2-branch ../bzr/bugzilla-3.2
     56    git bzr add bugzilla-3.4-branch ../bzr/bugzilla-3.4
     57    git bzr add bugzilla-3.6-branch ../bzr/bugzilla-3.6
     58}}}
     59 NOTE: If you get an error about too many authors while importing, see [https://bugs.launchpad.net/bzr-fastimport/+bug/496677 Bug 496677].
     60
     61 * Create a .git/info/grafts file to provide artificial merge points between the two remote repositories.
     62{{{
     63# BugsSite 3.2.3 merge has parents of    BugsSite r45519                      and bzr tag Bugzilla-3.2.3
     644b974c2db64b5e85e72498b0c43100e2ea380a48 355650f88422025d80d5b5ca7f908d653936556e 780da003de2a006fefa6310f073e3c6be0281a6d
    4665}}}
    4766
    4867 * Create a local git branch to track the BugsSite master branch.
    4968{{{
    50     git branch --track master remotes/origin-bugssite/master
     69    git branch --track master remotes/BugsSite/master
    5170}}}
    5271