Edgewall Software

Changes between Version 19 and Version 20 of TracRepositories


Ignore:
Timestamp:
Apr 29, 2020, 10:14:27 PM (4 weeks ago)
Author:
Ryan J Ollos
Comment:

BitBucket mirror is being removed.

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositories

    v19 v20  
    2323To become a Trac developer, [HowToContribute start to contribute], play well with the other team members and participate to [MailingList#Trac-dev Trac-dev].
    2424
    25 == Official mirrors    #OfficialMirrors
     25== Git mirror on github.com
    2626
    27 We now have official DVCS mirrors of the Subversion trunk and maintenance branches which are updated after every commit. For anything other than small fixes, it is more convenient to maintain your changes in your own repositories. That way, it will be easier to maintain them as the code base continues to evolve upstream (rebase, MQ, etc.).
    28 
    29 === Mercurial mirror on bitbucket.org
    30 
    31  https://bitbucket.org/edgewall/trac
    32 
    33 You can register for a BitBucket account and then "Fork" the above repository, which will create your own `trac` repository  under your account.
    34 
    35 Alternatively, you can directly clone the edgewall/trac repository and submit your changes via patches attached to the relevant tickets.
    36 
    37 {{{
    38 hg clone https://bitbucket.org/edgewall/trac
    39 }}}
    40 
    41 The mirror contains `trunk`, all `0.x-stable` branches since Trac 0.7 as well as the corresponding tags. To facilitate linking the Mercurial changesets with the corresponding changesets in Subversion, you may want to install the [https://bitbucket.org/rblank/hgsvnutils/src HgSvnUtils] Mercurial extension (maintained by RemyBlank). It automatically adds "virtual" tags for every changeset converted from Subversion, containing the SVN revision number:
    42 {{{
    43 $ hg glog
    44 o  6997[svn-9975,tip]:6995   20725063f3e2   2010-07-31 14:38 +0000   rblank
    45 |    Merged [9974] from 0.12-stable.
    46 |
    47 | o  6996[svn-9974]:6994   3b48c6d5a06b   2010-07-31 14:37 +0000   rblank
    48 | |    0.12.1dev: Follow-up to [9971], fixed the display of the default repository description.
    49 | |
    50 o |  6995[svn-9973]:6988   fd102216a0af   2010-07-31 14:32 +0000   rblank
    51 | |    Merged [9964:9972] from 0.12-stable.
    52 | |
    53 | o  6994[svn-9972]   39f0644d4995   2010-07-31 14:21 +0000   rblank
    54 | |    0.12.1dev: Fixed the dynamic expansion of directories in the repository browser on IE7.
    55 | |
    56 | o  6993[svn-9971]   2d8e405eb5e8   2010-07-31 11:31 +0000   rblank
    57 | |    0.12-stable: Fixed the display of the description of named repositories when showing the repository root.
    58 | |
    59 }}}
    60 
    61 This allows easy updating to a given SVN revision, or a comparison to a given SVN revision:
    62 
    63 {{{
    64 $ hg up svn-9974
    65 9 files updated, 0 files merged, 0 files removed, 0 files unresolved
    66 $ hg di -r svn-9972
    67 diff --git a/trac/versioncontrol/web_ui/browser.py b/trac/versioncontrol/web_ui/browser.py
    68 --- a/trac/versioncontrol/web_ui/browser.py
    69 +++ b/trac/versioncontrol/web_ui/browser.py
    70 @@ -398,7 +398,7 @@
    71  
    72          data = {
    73              'context': context, 'reponame': reponame, 'repos': repos,
    74 -            'repoinfo': all_repositories.get(reponame),
    75 +            'repoinfo': all_repositories.get(reponame or ''),
    76              'path': path, 'rev': node and node.rev, 'stickyrev': rev,
    77              'display_rev': display_rev,
    78              'created_path': node and node.created_path,
    79 }}}
    80 
    81 Note that when working with mixed working copies on Windows (i.e. a Subversion working copy which also contains a cloned `.hg` repository at its root), it can be useful to activate the `eol` Mercurial extension (see r9979 for details). Otherwise, after an `svn update`, the files can appear to be modified to `hg` due to different line endings. This is because the Mercurial mirror has been created on Linux, therefore all the files are stored in LF mode in the repository.
    82 
    83 === Git mirror on github.com
     27We have an official Git mirror of the Subversion trunk and maintenance branches which are updated after every commit. For anything other than small fixes, it is more convenient to maintain your changes in your own repositories. That way, it will be easier to maintain them as the code base continues to evolve upstream (rebase, MQ, etc.).
    8428
    8529 https://github.com/edgewall/trac