diff hgext/largefiles/overrides.py @ 15383:155d0f8fb7e5 stable

largefiles: fix bad bug where transplanting a changeset with a largefile will result in an old largefile being comitted later on
author Na'Tosha Bard <natosha@unity3d.com>
date Fri, 28 Oct 2011 18:48:24 +0200
parents b4ea79f88268
children e387e760b207
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Fri Oct 28 18:17:44 2011 +0200
+++ b/hgext/largefiles/overrides.py	Fri Oct 28 18:48:24 2011 +0200
@@ -817,3 +817,8 @@
             lfdirstate.add(file)
     lfdirstate.write()
     return result
+
+def override_transplant(orig, ui, repo, *revs, **opts):
+    result = orig(ui, repo, *revs, **opts)
+    lfcommands.updatelfiles(repo.ui, repo)
+    return result