Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

status: update header chunk state when file is toggled

This fixes a case where the patch could fail to apply:
1) Click on modified file, deactivate so entire file is not selected
2) Click on a single hunk, activate it, gives file partial status
3) Click commit, patch fails to apply.

What happened was that the patch header chunk was left inactive in
step 2, so the patch being applied did not have a valid header. This
fix applies the file's selection state to the header chunk.

Changeset a14088ed1f65

Parent 1132bb193494

by Steve Borho

Changes to one file · Browse files at a14088ed1f65 Showing diff from parent 1132bb193494 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
1036
1037
1038
 
1039
1040
1041
 
1036
1037
1038
1039
1040
1041
1042
@@ -1036,6 +1036,7 @@
  fr[FM_PARTIAL_SELECTED] = partial   if fr[FM_CHECKED] != newvalue:   fr[FM_CHECKED] = newvalue + chunks[0].active = newvalue   self.update_check_count()   self.update_diff_header(dmodel, wfile, newvalue)