mercurial/subrepo.py
changeset 45395 8c466bcb0879
parent 45073 a56ba57c837d
child 45562 03726f5b6092
equal deleted inserted replaced
45394:bd56597b2254 45395:8c466bcb0879
   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