Mercurial > hg
comparison hgext/largefiles/lfcommands.py @ 18144:e16982a74bf7
largefiles: introduce basic debugstate --large functionality
Very useful for debugging largefiles "performance" issues.
This is used for testing 03faf12fbee7.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 28 Dec 2012 11:55:57 +0100 |
parents | 0fc1ce271ee6 |
children | 65cec7fa5472 |
comparison
equal
deleted
inserted
replaced
18143:242d2f4ec01c | 18144:e16982a74bf7 |
---|---|
380 else: | 380 else: |
381 revs = ['.'] | 381 revs = ['.'] |
382 | 382 |
383 store = basestore._openstore(repo) | 383 store = basestore._openstore(repo) |
384 return store.verify(revs, contents=contents) | 384 return store.verify(revs, contents=contents) |
385 | |
386 def debugdirstate(ui, repo): | |
387 '''Show basic information for the largefiles dirstate''' | |
388 lfdirstate = lfutil.openlfdirstate(ui, repo) | |
389 for file_, ent in sorted(lfdirstate._map.iteritems()): | |
390 mode = '%3o' % (ent[1] & 0777 & ~util.umask) | |
391 ui.write("%c %s %10d %s\n" % (ent[0], mode, ent[2], file_)) | |
385 | 392 |
386 def cachelfiles(ui, repo, node, filelist=None): | 393 def cachelfiles(ui, repo, node, filelist=None): |
387 '''cachelfiles ensures that all largefiles needed by the specified revision | 394 '''cachelfiles ensures that all largefiles needed by the specified revision |
388 are present in the repository's largefile cache. | 395 are present in the repository's largefile cache. |
389 | 396 |