largefiles: fix test and check code
authorNa'Tosha Bard <natosha@unity3d.com>
Sat, 09 Feb 2013 16:02:01 +0000
changeset 18610 46edbc49a9f2
parent 18609 909cb9ddba4a
child 18611 18c2184c27dc
largefiles: fix test and check code
hgext/largefiles/overrides.py
tests/test-largefiles-cache.t
--- a/hgext/largefiles/overrides.py	Sat Aug 03 16:40:13 2013 +0200
+++ b/hgext/largefiles/overrides.py	Sat Feb 09 16:02:01 2013 +0000
@@ -741,7 +741,7 @@
         heads = lfutil.getcurrentheads(repo)
         newheads = set(heads).difference(set(oldheads))
         if len(newheads) > 0:
-            ui.status(_("caching largefiles for %s heads\n" % len(newheads)))
+            ui.status(_("caching largefiles for %s heads\n") % len(newheads))
         for head in newheads:
             (cached, missing) = lfcommands.cachelfiles(ui, repo, head)
             numcached += len(cached)
--- a/tests/test-largefiles-cache.t	Sat Aug 03 16:40:13 2013 +0200
+++ b/tests/test-largefiles-cache.t	Sat Feb 09 16:02:01 2013 +0000
@@ -37,7 +37,7 @@
   adding file changes
   added 1 changesets with 1 changes to 1 files
   (run 'hg update' to get a working copy)
-  caching new largefiles
+  caching largefiles for 1 heads
   0 largefiles cached
 
 Update working directory to "tip", which requires largefile("large"),