b2e4864dc599

Make fetch update the inc/out cache.

Patch from David Roguin.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 22 Jan 2011 12:28:23 -0500
parents 2cca772f7e3d
children c4095c3519d6
branches/tags (none)
files prompt.py

Changes

--- a/prompt.py	Sat Jan 22 12:26:30 2011 -0500
+++ b/prompt.py	Sat Jan 22 12:28:23 2011 -0500
@@ -419,6 +419,10 @@
 def uisetup(ui):
     extensions.wrapcommand(commands.table, 'pull', _pull_with_cache)
     extensions.wrapcommand(commands.table, 'push', _push_with_cache)
+    try:
+        extensions.wrapcommand(extensions.find("fetch").cmdtable, 'fetch', _pull_with_cache)
+    except KeyError:
+        pass
 
 cmdtable = {
     "prompt":