~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Pool
  • Date: 2011-03-27 10:25:59 UTC
  • mto: This revision was merged to the branch mainline in revision 5802.
  • Revision ID: mbp@canonical.com-20110327102559-kqpc6tsv420ci8p2
Show a user warning on 'bzr clone' and 'get'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1205
1205
 
1206
1206
    To retrieve the branch as of a particular revision, supply the --revision
1207
1207
    parameter, as in "branch foo/bar -r 5".
 
1208
 
 
1209
    The synonyms 'clone' and 'get' for this command are deprecated.
1208
1210
    """
1209
1211
 
1210
1212
    _see_also = ['checkout']
1240
1242
            files_from=None):
1241
1243
        from bzrlib import switch as _mod_switch
1242
1244
        from bzrlib.tag import _merge_tags_if_possible
 
1245
        if self.invoked_as in ['get', 'clone']:
 
1246
            ui.ui_factory.show_user_warning(
 
1247
                'deprecated_command',
 
1248
                deprecated_name=self.invoked_as,
 
1249
                recommended_name='branch',
 
1250
                deprecated_in_version='2.4')
1243
1251
        accelerator_tree, br_from = bzrdir.BzrDir.open_tree_or_branch(
1244
1252
            from_location)
1245
1253
        if not (hardlink or files_from):
3170
3178
                    help='When no message is supplied, show the diff along'
3171
3179
                    ' with the status summary in the message editor.'),
3172
3180
             ]
3173
 
    aliases = ['ci', 'checkin']
 
3181
    aliases = ['ci']
3174
3182
 
3175
3183
    def _iter_bug_fix_urls(self, fixes, branch):
3176
3184
        # Configure the properties for bug fixing attributes.