mercurial/cmdutil.py
changeset 8117 2b30d8488819
parent 8013 9ec25db32b4e
child 8119 af44d0b953c6
equal deleted inserted replaced
8116:c11636f0609e 8117:2b30d8488819
   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