diff hgext/largefiles/overrides.py @ 17268:8c31b652bdfe stable

largefiles: support revsets for revert Previous to this, revert only accepted revsets if the largefiles extension was disabled.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 20 Jul 2012 18:13:19 -0400
parents c4ebdc36c17e
children acfab0754584
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Wed Jul 25 16:40:38 2012 +0900
+++ b/hgext/largefiles/overrides.py	Fri Jul 20 18:13:19 2012 -0400
@@ -567,7 +567,7 @@
                 os.unlink(repo.wjoin(lfutil.standin(lfile)))
 
         try:
-            ctx = repo[opts.get('rev')]
+            ctx = scmutil.revsingle(repo, opts.get('rev'))
             oldmatch = None # for the closure
             def overridematch(ctx, pats=[], opts={}, globbed=False,
                     default='relpath'):