changeset 18610:46edbc49a9f2

largefiles: fix test and check code
author Na'Tosha Bard <natosha@unity3d.com>
date Sat, 09 Feb 2013 16:02:01 +0000
parents 909cb9ddba4a
children 18c2184c27dc
files hgext/largefiles/overrides.py tests/test-largefiles-cache.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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"),