Changeset d93f0b0c60ce…
Parent ea4a93f9f8d0…
by Na'Tosha Bard <natosha@unity3d.com>
Changes to one file · Browse files at d93f0b0c60ce Showing diff from parent ea4a93f9f8d0 Diff from another changeset...
@@ -1032,6 +1032,13 @@
return orig(ui, repo, *pats, **opts)
+# Calling purge with --all will cause the kbfiles to be deleted, but doesn't
+# re-populate them. We must do it explicitly. It doesn't hurt anything to
+# be safe and update them the rest of the time after calling purge, either.
+def override_purge(orig, ui, repo, *dirs, **opts):
+ orig(ui, repo, *dirs, **opts)
+ bfcommands.update_bfiles(repo.ui, repo)
+
def uisetup(ui):
# Disable auto-status for some commands which assume that all
# files in the result are under Mercurial's control
@@ -1081,6 +1088,8 @@ for name, module in extensions.extensions():
if name == 'fetch':
extensions.wrapcommand(getattr(module, 'cmdtable'), 'fetch', override_fetch)
+ if name == 'purge':
+ extensions.wrapcommand(getattr(module, 'cmdtable'), 'purge', override_purge)
if name == 'rebase':
extensions.wrapcommand(getattr(module, 'cmdtable'), 'rebase', override_rebase)
|
Loading...