equal
deleted
inserted
replaced
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') |