Changeset 65b380a3ec95…
Parent 4a7a4b6cb502…
by
Changes to one file · Browse files at 65b380a3ec95 Showing diff from parent 4a7a4b6cb502 Diff from another changeset...
@@ -588,8 +588,9 @@ # List of the currently checked and selected files to pass on to
# the new data
model, tpaths = selection.get_selected_rows()
+ reselect = [model[path][FM_PATH] for path in tpaths]
recheck = [entry[FM_PATH] for entry in model if entry[FM_CHECKED]]
- reselect = [model[path][FM_PATH] for path in tpaths]
+ old = [entry[FM_PATH] for entry in model]
# merge-state of files
ms = merge_.mergestate(repo)
@@ -604,8 +605,8 @@ for wfile in changes:
mst = wfile in ms and ms[wfile].upper() or ""
wfile = util.localpath(wfile)
- model.append([wfile in recheck, char,
- hglib.toutf(wfile), wfile, mst, False])
+ ck = wfile in recheck or (wfile not in old and char in 'MAR')
+ model.append([ck, char, hglib.toutf(wfile), wfile, mst, False])
self.auto_check()
|
Loading...