mercurial/localrepo.py
changeset 8995 7b19cda0fa10
parent 8994 4a1187d3cb00
child 9032 1fa80c5428b8
child 9093 0b2b269ba3d0
equal deleted inserted replaced
8994:4a1187d3cb00 8995:7b19cda0fa10
   858                         fail(f, _("file not tracked!"))
   858                         fail(f, _("file not tracked!"))
   859 
   859 
   860             if (not force and not extra.get("close") and p2 == nullid
   860             if (not force and not extra.get("close") and p2 == nullid
   861                 and not (changes[0] or changes[1] or changes[2])
   861                 and not (changes[0] or changes[1] or changes[2])
   862                 and self[None].branch() == self['.'].branch()):
   862                 and self[None].branch() == self['.'].branch()):
   863                 self.ui.status(_("nothing changed\n"))
       
   864                 return None
   863                 return None
   865 
   864 
   866             ms = merge_.mergestate(self)
   865             ms = merge_.mergestate(self)
   867             for f in changes[0]:
   866             for f in changes[0]:
   868                 if f in ms and ms[f] == 'u':
   867                 if f in ms and ms[f] == 'u':