mercurial/commands.py
branchstable
changeset 15381 c519cd8f0169
parent 15373 9a2582e325a5
child 15404 c1eb8398fe82
child 15463 e1005da0ae04
equal deleted inserted replaced
15380:a53888685a6c 15381:c519cd8f0169
   342     ctx = scmutil.revsingle(repo, opts.get('rev'))
   342     ctx = scmutil.revsingle(repo, opts.get('rev'))
   343     if not ctx:
   343     if not ctx:
   344         raise util.Abort(_('no working directory: please specify a revision'))
   344         raise util.Abort(_('no working directory: please specify a revision'))
   345     node = ctx.node()
   345     node = ctx.node()
   346     dest = cmdutil.makefilename(repo, dest, node)
   346     dest = cmdutil.makefilename(repo, dest, node)
   347     if util.realpath(dest) == repo.root:
   347     if os.path.realpath(dest) == repo.root:
   348         raise util.Abort(_('repository root cannot be destination'))
   348         raise util.Abort(_('repository root cannot be destination'))
   349 
   349 
   350     kind = opts.get('type') or archival.guesskind(dest) or 'files'
   350     kind = opts.get('type') or archival.guesskind(dest) or 'files'
   351     prefix = opts.get('prefix')
   351     prefix = opts.get('prefix')
   352 
   352