hgext/record.py
changeset 6603 41eb20cc1c02
parent 6602 a57a27b12965
child 6760 4faaa0535ea7
equal deleted inserted replaced
6602:a57a27b12965 6603:41eb20cc1c02
   429             ui.status(_('no changes to record\n'))
   429             ui.status(_('no changes to record\n'))
   430             return 0
   430             return 0
   431 
   431 
   432         if changes is None:
   432         if changes is None:
   433             match = cmdutil.matchfiles(repo, newfiles)
   433             match = cmdutil.matchfiles(repo, newfiles)
   434             changes = repo.status(files=match.files(), match=match)[:5]
   434             changes = repo.status(match=match)[:5]
   435         modified = dict.fromkeys(changes[0])
   435         modified = dict.fromkeys(changes[0])
   436 
   436 
   437         # 2. backup changed files, so we can restore them in the end
   437         # 2. backup changed files, so we can restore them in the end
   438         backups = {}
   438         backups = {}
   439         backupdir = repo.join('record-backups')
   439         backupdir = repo.join('record-backups')