--- a/hgext/largefiles/lfcommands.py Fri Dec 28 11:55:57 2012 +0100
+++ b/hgext/largefiles/lfcommands.py Fri Dec 28 11:55:57 2012 +0100
@@ -383,6 +383,13 @@
store = basestore._openstore(repo)
return store.verify(revs, contents=contents)
+def debugdirstate(ui, repo):
+ '''Show basic information for the largefiles dirstate'''
+ lfdirstate = lfutil.openlfdirstate(ui, repo)
+ for file_, ent in sorted(lfdirstate._map.iteritems()):
+ mode = '%3o' % (ent[1] & 0777 & ~util.umask)
+ ui.write("%c %s %10d %s\n" % (ent[0], mode, ent[2], file_))
+
def cachelfiles(ui, repo, node, filelist=None):
'''cachelfiles ensures that all largefiles needed by the specified revision
are present in the repository's largefile cache.