##// END OF EJS Templates
largefiles: full debugdirstate functionality for largefiles...
Mads Kiilerich -
r21088:e095626e default
parent child Browse files
Show More
@@ -375,13 +375,6 b' def verifylfiles(ui, repo, all=False, co'
375 375 store = basestore._openstore(repo)
376 376 return store.verify(revs, contents=contents)
377 377
378 def debugdirstate(ui, repo):
379 '''Show basic information for the largefiles dirstate'''
380 lfdirstate = lfutil.openlfdirstate(ui, repo)
381 for file_, ent in sorted(lfdirstate._map.iteritems()):
382 mode = '%3o' % (ent[1] & 0777 & ~util.umask)
383 ui.write("%c %s %10d %s\n" % (ent[0], mode, ent[2], file_))
384
385 378 def cachelfiles(ui, repo, node, filelist=None):
386 379 '''cachelfiles ensures that all largefiles needed by the specified revision
387 380 are present in the repository's largefile cache.
@@ -286,7 +286,9 b' def overrideverify(orig, ui, repo, *pats'
286 286 def overridedebugstate(orig, ui, repo, *pats, **opts):
287 287 large = opts.pop('large', False)
288 288 if large:
289 lfcommands.debugdirstate(ui, repo)
289 class fakerepo(object):
290 dirstate = lfutil.openlfdirstate(ui, repo)
291 orig(ui, fakerepo, *pats, **opts)
290 292 else:
291 293 orig(ui, repo, *pats, **opts)
292 294
@@ -43,7 +43,7 b' Test status and dirstate of largefiles a'
43 43 n 644 41 .hglf/sub/large2
44 44 n 644 8 normal1
45 45 n 644 8 sub/normal2
46 $ hg debugstate --large
46 $ hg debugstate --large --nodates
47 47 n 644 7 large1
48 48 n 644 7 sub/large2
49 49 $ echo normal11 > normal1
General Comments 0
You need to be logged in to leave comments. Login now