--- a/hgext/largefiles/overrides.py Mon Dec 08 15:41:54 2014 -0800
+++ b/hgext/largefiles/overrides.py Sat Dec 13 13:33:48 2014 -0500
@@ -189,8 +189,15 @@
# are removing the file.
if isaddremove:
ui.status(_('removing %s\n') % f)
- util.unlinkpath(repo.wjoin(f), ignoremissing=True)
- lfdirstate.remove(f)
+
+ if not opts.get('dry_run'):
+ if not after:
+ util.unlinkpath(repo.wjoin(f), ignoremissing=True)
+ lfdirstate.remove(f)
+
+ if opts.get('dry_run'):
+ return result
+
lfdirstate.write()
remove = [lfutil.standin(f) for f in remove]
# If this is being called by addremove, let the original addremove