/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Andrew Bennetts
  • Date: 2009-12-03 05:57:41 UTC
  • mfrom: (4857 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4869.
  • Revision ID: andrew.bennetts@canonical.com-20091203055741-vmmg0fmjgjw2pwvu
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    reconfigure,
44
44
    rename_map,
45
45
    revision as _mod_revision,
 
46
    static_tuple,
46
47
    symbol_versioning,
47
48
    timestamp,
48
49
    transport,
258
259
    unknown
259
260
        Not versioned and not matching an ignore pattern.
260
261
 
 
262
    Additionally for directories, symlinks and files with an executable
 
263
    bit, Bazaar indicates their type using a trailing character: '/', '@'
 
264
    or '*' respectively.
 
265
 
261
266
    To see ignored files use 'bzr ignored'.  For details on the
262
267
    changes to file texts, use 'bzr diff'.
263
268
 
432
437
        for node in bt.iter_all_entries():
433
438
            # Node is made up of:
434
439
            # (index, key, value, [references])
435
 
            refs_as_tuples = tuple([tuple([tuple(ref) for ref in ref_list])
436
 
                                   for ref_list in node[3]])
 
440
            refs_as_tuples = static_tuple.as_tuples(node[3])
437
441
            as_tuple = (tuple(node[1]), node[2], refs_as_tuples)
438
442
            self.outf.write('%s\n' % (as_tuple,))
439
443
 
1748
1752
 
1749
1753
 
1750
1754
class cmd_init_repository(Command):
1751
 
    """Create a shared repository to hold branches.
 
1755
    """Create a shared repository for branches to share storage space.
1752
1756
 
1753
1757
    New branches created under the repository directory will store their
1754
 
    revisions in the repository, not in the branch directory.
 
1758
    revisions in the repository, not in the branch directory.  For branches
 
1759
    with shared history, this reduces the amount of storage needed and 
 
1760
    speeds up the creation of new branches.
1755
1761
 
1756
 
    If the --no-trees option is used then the branches in the repository
1757
 
    will not have working trees by default.
 
1762
    If the --no-trees option is given then the branches in the repository
 
1763
    will not have working trees by default.  They will still exist as 
 
1764
    directories on disk, but they will not have separate copies of the 
 
1765
    files at a certain revision.  This can be useful for repositories that
 
1766
    store branches which are interacted with through checkouts or remote
 
1767
    branches, such as on a server.
1758
1768
 
1759
1769
    :Examples:
1760
 
        Create a shared repositories holding just branches::
 
1770
        Create a shared repository holding just branches::
1761
1771
 
1762
1772
            bzr init-repo --no-trees repo
1763
1773
            bzr init repo/trunk
2506
2516
        if from_root:
2507
2517
            if relpath:
2508
2518
                prefix = relpath + '/'
2509
 
        elif fs_path != '.':
 
2519
        elif fs_path != '.' and not fs_path.endswith('/'):
2510
2520
            prefix = fs_path + '/'
2511
2521
 
2512
2522
        if revision is not None or tree is None:
4078
4088
    revert ." in the tree root to revert all files but keep the merge record,
4079
4089
    and "bzr revert --forget-merges" to clear the pending merge list without
4080
4090
    reverting any files.
 
4091
 
 
4092
    Using "bzr revert --forget-merges", it is possible to apply the changes
 
4093
    from an arbitrary merge as a single revision.  To do this, perform the
 
4094
    merge as desired.  Then doing revert with the "--forget-merges" option will
 
4095
    keep the content of the tree as it was, but it will clear the list of
 
4096
    pending merges.  The next commit will then contain all of the changes that
 
4097
    would have been in the merge, but without any mention of the other parent
 
4098
    revisions.  Because this technique forgets where these changes originated,
 
4099
    it may cause additional conflicts on later merges involving the source and
 
4100
    target branches.
4081
4101
    """
4082
4102
 
4083
4103
    _see_also = ['cat', 'export']
4164
4184
    To filter on a range of revisions, you can use the command -r begin..end
4165
4185
    -r revision requests a specific revision, -r ..end or -r begin.. are
4166
4186
    also valid.
 
4187
            
 
4188
    :Exit values:
 
4189
        1 - some missing revisions
 
4190
        0 - no missing revisions
4167
4191
 
4168
4192
    :Examples:
4169
4193