Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 14528:0bd69e37fd20
memctx: simplify constructor
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 04 Jun 2011 15:20:49 +0200 |
parents | a67e866f46f9 |
children | f3a40fd7008c |
comparison
equal
deleted
inserted
replaced
14527:5867bd6e7cf5 | 14528:0bd69e37fd20 |
---|---|
1006 files = sorted(set(files)) | 1006 files = sorted(set(files)) |
1007 self._status = [files, [], [], [], []] | 1007 self._status = [files, [], [], [], []] |
1008 self._filectxfn = filectxfn | 1008 self._filectxfn = filectxfn |
1009 | 1009 |
1010 self._extra = extra and extra.copy() or {} | 1010 self._extra = extra and extra.copy() or {} |
1011 if 'branch' not in self._extra: | 1011 if self._extra.get('branch', '') == '': |
1012 self._extra['branch'] = 'default' | |
1013 elif self._extra.get('branch') == '': | |
1014 self._extra['branch'] = 'default' | 1012 self._extra['branch'] = 'default' |
1015 | 1013 |
1016 def __str__(self): | 1014 def __str__(self): |
1017 return str(self._parents[0]) + "+" | 1015 return str(self._parents[0]) + "+" |
1018 | 1016 |