~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

merge jam fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    merge_directive,
42
42
    osutils,
43
43
    reconfigure,
 
44
    rename_map,
44
45
    revision as _mod_revision,
45
46
    symbol_versioning,
46
47
    transport,
5233
5234
            urlutils.unescape_for_display(to_branch.base, 'utf-8'))
5234
5235
 
5235
5236
 
 
5237
class cmd_guess_renames(Command):
 
5238
    """Guess which files have been have been renamed, based on their content.
 
5239
 
 
5240
    Only versioned files which have been deleted are candidates for rename
 
5241
    detection, and renames to ignored files will not be detected.
 
5242
    """
 
5243
 
 
5244
    def run(self):
 
5245
        work_tree, file_list = tree_files(None, default_branch='.')
 
5246
        work_tree.lock_write()
 
5247
        try:
 
5248
            rename_map.RenameMap.guess_renames(work_tree)
 
5249
        finally:
 
5250
            work_tree.unlock()
 
5251
 
 
5252
 
5236
5253
class cmd_view(Command):
5237
5254
    """Manage filtered views.
5238
5255