equal
deleted
inserted
replaced
984 if not opts.get('dry_run'): |
984 if not opts.get('dry_run'): |
985 self.get(substate, overwrite=True) |
985 self.get(substate, overwrite=True) |
986 |
986 |
987 def filerevert(self, *pats, **opts): |
987 def filerevert(self, *pats, **opts): |
988 ctx = self._repo[opts['rev']] |
988 ctx = self._repo[opts['rev']] |
989 parents = self._repo.dirstate.parents() |
|
990 if opts.get('all'): |
989 if opts.get('all'): |
991 pats = [b'set:modified()'] |
990 pats = [b'set:modified()'] |
992 else: |
991 else: |
993 pats = [] |
992 pats = [] |
994 cmdutil.revert(self.ui, self._repo, ctx, parents, *pats, **opts) |
993 cmdutil.revert(self.ui, self._repo, ctx, *pats, **opts) |
995 |
994 |
996 def shortid(self, revid): |
995 def shortid(self, revid): |
997 return revid[:12] |
996 return revid[:12] |
998 |
997 |
999 @annotatesubrepoerror |
998 @annotatesubrepoerror |