mercurial/commands.py
branchstable
changeset 10645 ac280ab55c9f
parent 10637 7ce62865d72a
child 10649 e13797685ee6
child 10933 e3396b218e10
equal deleted inserted replaced
10637:7ce62865d72a 10645:ac280ab55c9f
   657     metadata under the .hg directory, such as mq.
   657     metadata under the .hg directory, such as mq.
   658 
   658 
   659     Mercurial will update the working directory to the first applicable
   659     Mercurial will update the working directory to the first applicable
   660     revision from this list:
   660     revision from this list:
   661 
   661 
   662       a) null if -U or the source repository has no changesets
   662     a) null if -U or the source repository has no changesets
   663       b) if -u . and the source repository is local, the first parent of
   663     b) if -u . and the source repository is local, the first parent of
   664          the source repository's working directory
   664        the source repository's working directory
   665       c) the changeset specified with -u (if a branch name, this means the
   665     c) the changeset specified with -u (if a branch name, this means the
   666          latest head of that branch)
   666        latest head of that branch)
   667       d) the changeset specified with -r
   667     d) the changeset specified with -r
   668       e) the tipmost head specified with -b
   668     e) the tipmost head specified with -b
   669       f) the tipmost head specified with the url#branch source syntax
   669     f) the tipmost head specified with the url#branch source syntax
   670       g) the tipmost head of the default branch
   670     g) the tipmost head of the default branch
   671       h) tip
   671     h) tip
   672     """
   672     """
   673     if opts.get('noupdate') and opts.get('updaterev'):
   673     if opts.get('noupdate') and opts.get('updaterev'):
   674         raise util.Abort(_("cannot specify both --noupdate and --updaterev"))
   674         raise util.Abort(_("cannot specify both --noupdate and --updaterev"))
   675 
   675 
   676     hg.clone(cmdutil.remoteui(ui, opts), source, dest,
   676     hg.clone(cmdutil.remoteui(ui, opts), source, dest,