##// END OF EJS Templates
largefiles: support revsets for revert...
Matt Harbison -
r17268:8c31b652 stable
parent child Browse files
Show More
@@ -567,7 +567,7 def overriderevert(orig, ui, repo, *pats
567 os.unlink(repo.wjoin(lfutil.standin(lfile)))
567 os.unlink(repo.wjoin(lfutil.standin(lfile)))
568
568
569 try:
569 try:
570 ctx = repo[opts.get('rev')]
570 ctx = scmutil.revsingle(repo, opts.get('rev'))
571 oldmatch = None # for the closure
571 oldmatch = None # for the closure
572 def overridematch(ctx, pats=[], opts={}, globbed=False,
572 def overridematch(ctx, pats=[], opts={}, globbed=False,
573 default='relpath'):
573 default='relpath'):
@@ -869,6 +869,8 revert some files to an older revision
869 reverting .hglf/sub2/large6 (glob)
869 reverting .hglf/sub2/large6 (glob)
870 $ cat sub2/large6
870 $ cat sub2/large6
871 large6
871 large6
872 $ hg revert --no-backup -C -r '.^' sub2
873 reverting .hglf/sub2/large6 (glob)
872 $ hg revert --no-backup sub2
874 $ hg revert --no-backup sub2
873 reverting .hglf/sub2/large6 (glob)
875 reverting .hglf/sub2/large6 (glob)
874 $ hg status
876 $ hg status
General Comments 0
You need to be logged in to leave comments. Login now