equal
deleted
inserted
replaced
357 repo.pathto(prevsrc, cwd))) |
357 repo.pathto(prevsrc, cwd))) |
358 return |
358 return |
359 |
359 |
360 # check for overwrites |
360 # check for overwrites |
361 exists = os.path.exists(target) |
361 exists = os.path.exists(target) |
362 if (not after and exists or after and state in 'mn'): |
362 if not after and exists or after and state in 'mn': |
363 if not opts['force']: |
363 if not opts['force']: |
364 ui.warn(_('%s: not overwriting - file exists\n') % |
364 ui.warn(_('%s: not overwriting - file exists\n') % |
365 reltarget) |
365 reltarget) |
366 return |
366 return |
367 |
367 |