mercurial/cmdutil.py
changeset 14257 d035ede73434
parent 14249 f4766e1bb0b3
child 14259 df9ccd39828c
equal deleted inserted replaced
14256:d04ba50e104d 14257:d035ede73434
   333             wlock.release()
   333             wlock.release()
   334 
   334 
   335 def updatedir(ui, repo, patches, similarity=0):
   335 def updatedir(ui, repo, patches, similarity=0):
   336     '''Update dirstate after patch application according to metadata'''
   336     '''Update dirstate after patch application according to metadata'''
   337     if not patches:
   337     if not patches:
   338         return
   338         return []
   339     copies = []
   339     copies = []
   340     removes = set()
   340     removes = set()
   341     cfiles = patches.keys()
   341     cfiles = patches.keys()
   342     cwd = repo.getcwd()
   342     cwd = repo.getcwd()
   343     if cwd:
   343     if cwd: