mercurial/context.py
changeset 14528 0bd69e37fd20
parent 14518 a67e866f46f9
child 14644 f3a40fd7008c
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