Kiln » largefiles » Unity
Clone URL:  

forget: drop largefile from dirstate if it is marked added, rather than marking it removed

Changeset 6f9eeb2e09d4

Parent 85edfa3cd30a

by Profile picture of User 521Andrew Pritchard <andrewp@fogcreek.com>

Changes to one file · Browse files at 6f9eeb2e09d4 Showing diff from parent 85edfa3cd30a Diff from another changeset...

Change 1 of 1 Show Entire File overrides.py Stacked
 
840
841
842
843
 
 
 
 
844
845
846
 
840
841
842
 
843
844
845
846
847
848
849
@@ -840,7 +840,10 @@
  try:   lfdirstate = lfutil.openlfdirstate(ui, repo)   for f in forget: - lfdirstate.remove(lfutil.unixpath(f)) + if lfdirstate[lfutil.unixpath(f)] == 'a': + lfdirstate.drop(lfutil.unixpath(f)) + else: + lfdirstate.remove(lfutil.unixpath(f))   lfdirstate.write()   lfutil.repo_remove(repo, [lfutil.standin(f) for f in forget],   unlink=True)