Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 5609:a783d3627144
copy: move rename logic
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 07 Dec 2007 02:03:42 -0600 |
parents | 784eadabd985 |
children | 2493a478f395 |
comparison
equal
deleted
inserted
replaced
5608:784eadabd985 | 5609:a783d3627144 |
---|---|
479 if copyfile(abssrc, relsrc, targetpath(abssrc), exact): | 479 if copyfile(abssrc, relsrc, targetpath(abssrc), exact): |
480 errors += 1 | 480 errors += 1 |
481 | 481 |
482 if errors: | 482 if errors: |
483 ui.warn(_('(consider using --after)\n')) | 483 ui.warn(_('(consider using --after)\n')) |
484 | |
484 return errors, copied | 485 return errors, copied |
485 | 486 |
486 def service(opts, parentfn=None, initfn=None, runfn=None): | 487 def service(opts, parentfn=None, initfn=None, runfn=None): |
487 '''Run a command as a service.''' | 488 '''Run a command as a service.''' |
488 | 489 |