[PATCH remotefilelog-ext] debugindex: use normal handling for --dir

Martin von Zweigbergk martinvonz at google.com
Wed May 18 04:34:36 UTC 2016


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1451971941 28800
#      Mon Jan 04 21:32:21 2016 -0800
# Node ID ee1d92ab3e3e90172d9a222677de7291cc6ebf4e
# Parent  3db9ebc1a68ba2dd262b3a16fbfc14d911fe2589
debugindex: use normal handling for --dir

'debugindex --dir' is used for looking up the revlog of a directory
manifest, so it should use the normal (local file system) handling,
not remotefilelog.

diff -r 3db9ebc1a68b -r ee1d92ab3e3e remotefilelog/debugcommands.py
--- a/remotefilelog/debugcommands.py	Wed May 04 14:53:23 2016 -0700
+++ b/remotefilelog/debugcommands.py	Mon Jan 04 21:32:21 2016 -0800
@@ -74,7 +74,9 @@
 
 def debugindex(orig, ui, repo, file_=None, **opts):
     """dump the contents of an index file"""
-    if (opts.get('changelog') or opts.get('manifest') or
+    if (opts.get('changelog') or
+        opts.get('manifest') or
+        opts.get('dir') or
         not shallowrepo.requirement in repo.requirements or
         not repo.shallowmatch(file_)):
         return orig(ui, repo, file_, **opts)


More information about the Mercurial-devel mailing list