Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

status: use util.pconvert() when indexing filechunks

Diff headers use normalized paths, always have '/' separators
hg status uses local separators

Changeset f6d8076f2a45

Parent b43d92124781

by Steve Borho

Changes to one file · Browse files at f6d8076f2a45 Showing diff from parent b43d92124781 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​status.py Stacked
 
618
619
620
621
 
622
623
624
 
809
810
811
812
 
813
814
815
 
828
829
830
831
 
832
833
834
 
618
619
620
 
621
622
623
624
 
809
810
811
 
812
813
814
815
 
828
829
830
 
831
832
833
834
@@ -618,7 +618,7 @@
    def _update_chunk_state(self, entry):   '''Update chunk toggle state to match file toggle state''' - file = entry[FM_PATH] + file = util.pconvert(entry[FM_PATH])   if file not in self._filechunks: return   entry[FM_PARTIAL_SELECTED] = False   self._update_partial(self.diff_model, file, False) @@ -809,7 +809,7 @@
  if not sel:   self._last_file = None   return False - file = self.filemodel[sel[0]][FM_PATH_UTF8] + file = util.pconvert(self.filemodel[sel[0]][FM_PATH])   if force or file != self._last_file:   self._last_file = file   if file in self._filechunks: @@ -828,7 +828,7 @@
  if file not in self._filechunks:   return   for fr in self.filemodel: - if fr[FM_PATH] == file: + if util.pconvert(fr[FM_PATH]) == file:   break   fchunks = self._filechunks[file][1:]   if row[DM_HEADER_CHUNK]: