Kiln » Unity3D Unity 3D's proposed fixes and extensions to Kiln BFiles
Clone URL:  

Fix bug where purge deletes (and does not repopulate) kbfiles).

Changeset d93f0b0c60ce

Parent ea4a93f9f8d0

by Profile picture of User 496Na'Tosha Bard <natosha@unity3d.com>

Changes to one file · Browse files at d93f0b0c60ce Showing diff from parent ea4a93f9f8d0 Diff from another changeset...

 
1032
1033
1034
 
 
 
 
 
 
 
1035
1036
1037
 
1081
1082
1083
 
 
1084
1085
1086
 
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
 
1088
1089
1090
1091
1092
1093
1094
1095
@@ -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)