898 |
898 |
899 # Call into the normal remove code, but the removing of the standin, we want |
899 # Call into the normal remove code, but the removing of the standin, we want |
900 # to have handled by original addremove. Monkey patching here makes sure |
900 # to have handled by original addremove. Monkey patching here makes sure |
901 # we don't remove the standin in the largefiles code, preventing a very |
901 # we don't remove the standin in the largefiles code, preventing a very |
902 # confused state later. |
902 # confused state later. |
903 repo._isaddremove = True |
903 if missing: |
904 remove_largefiles(ui, repo, *missing, **opts) |
904 repo._isaddremove = True |
905 repo._isaddremove = False |
905 remove_largefiles(ui, repo, *missing, **opts) |
|
906 repo._isaddremove = False |
906 # Call into the normal add code, and any files that *should* be added as |
907 # Call into the normal add code, and any files that *should* be added as |
907 # largefiles will be |
908 # largefiles will be |
908 add_largefiles(ui, repo, *pats, **opts) |
909 add_largefiles(ui, repo, *pats, **opts) |
909 # Now that we've handled largefiles, hand off to the original addremove |
910 # Now that we've handled largefiles, hand off to the original addremove |
910 # function to take care of the rest. Make sure it doesn't do anything with |
911 # function to take care of the rest. Make sure it doesn't do anything with |