comparison mercurial/context.py @ 16410:80b3d574881f

context: revert workingctx.ancestors() followfirst option It was introduced by mistake in 352053e6cd8e.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 11 Apr 2012 11:29:12 +0200
parents f8ce254e514f
children bfe89d65d651
comparison
equal deleted inserted replaced
16409:2cbd7dd0cc1f 16410:80b3d574881f
1001 self._repo.dirstate.drop(f) 1001 self._repo.dirstate.drop(f)
1002 return rejected 1002 return rejected
1003 finally: 1003 finally:
1004 wlock.release() 1004 wlock.release()
1005 1005
1006 def ancestors(self, followfirst=False): 1006 def ancestors(self):
1007 cut = followfirst and 1 or None
1008 for a in self._repo.changelog.ancestors( 1007 for a in self._repo.changelog.ancestors(
1009 *[p.rev() for p in self._parents[:cut]]): 1008 *[p.rev() for p in self._parents]):
1010 yield changectx(self._repo, a) 1009 yield changectx(self._repo, a)
1011 1010
1012 def undelete(self, list): 1011 def undelete(self, list):
1013 pctxs = self.parents() 1012 pctxs = self.parents()
1014 wlock = self._repo.wlock() 1013 wlock = self._repo.wlock()