comparison mercurial/commands.py @ 15381:c519cd8f0169 stable

backout dbdb777502dc (issue3077) (issue3071) Using util.realpath turns out to create complex issues on both Mac and Windows. Back this change out for the release.
author Matt Mackall <mpm@selenic.com>
date Sat, 29 Oct 2011 11:02:23 -0500
parents 9a2582e325a5
children c1eb8398fe82 e1005da0ae04
comparison
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