##// 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 store = basestore._openstore(repo)
375 store = basestore._openstore(repo)
376 return store.verify(revs, contents=contents)
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 def cachelfiles(ui, repo, node, filelist=None):
378 def cachelfiles(ui, repo, node, filelist=None):
386 '''cachelfiles ensures that all largefiles needed by the specified revision
379 '''cachelfiles ensures that all largefiles needed by the specified revision
387 are present in the repository's largefile cache.
380 are present in the repository's largefile cache.
@@ -286,7 +286,9 b' def overrideverify(orig, ui, repo, *pats'
286 def overridedebugstate(orig, ui, repo, *pats, **opts):
286 def overridedebugstate(orig, ui, repo, *pats, **opts):
287 large = opts.pop('large', False)
287 large = opts.pop('large', False)
288 if large:
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 else:
292 else:
291 orig(ui, repo, *pats, **opts)
293 orig(ui, repo, *pats, **opts)
292
294
@@ -43,7 +43,7 b' Test status and dirstate of largefiles a'
43 n 644 41 .hglf/sub/large2
43 n 644 41 .hglf/sub/large2
44 n 644 8 normal1
44 n 644 8 normal1
45 n 644 8 sub/normal2
45 n 644 8 sub/normal2
46 $ hg debugstate --large
46 $ hg debugstate --large --nodates
47 n 644 7 large1
47 n 644 7 large1
48 n 644 7 sub/large2
48 n 644 7 sub/large2
49 $ echo normal11 > normal1
49 $ echo normal11 > normal1
General Comments 0
You need to be logged in to leave comments. Login now