comparison mercurial/context.py @ 8151:127281884959

util: use built-in set instead of util.unique
author Martin Geisler <mg@lazybytes.net>
date Wed, 22 Apr 2009 00:56:06 +0200
parents aece3c9e62f1
children 77c5877a668c
comparison
equal deleted inserted replaced
8150:bbc24c0753a0 8151:127281884959
732 self._date = date and util.parsedate(date) or util.makedate() 732 self._date = date and util.parsedate(date) or util.makedate()
733 self._user = user 733 self._user = user
734 parents = [(p or nullid) for p in parents] 734 parents = [(p or nullid) for p in parents]
735 p1, p2 = parents 735 p1, p2 = parents
736 self._parents = [changectx(self._repo, p) for p in (p1, p2)] 736 self._parents = [changectx(self._repo, p) for p in (p1, p2)]
737 files = util.sort(util.unique(files)) 737 files = util.sort(set(files))
738 self._status = [files, [], [], [], []] 738 self._status = [files, [], [], [], []]
739 self._filectxfn = filectxfn 739 self._filectxfn = filectxfn
740 740
741 self._extra = extra and extra.copy() or {} 741 self._extra = extra and extra.copy() or {}
742 if 'branch' not in self._extra: 742 if 'branch' not in self._extra: