Patchwork largefiles: fix test and check code

login
register
mail settings
Submitter natosha@unity3d.com
Date Feb. 9, 2013, 4:06 p.m.
Message ID <ccdd9920f705df682210.1360425963@s0-0.paconsult7.bbnplanet.net>
Download mbox | patch
Permalink /patch/893/
State Accepted
Commit 46edbc49a9f213dd9c78e4dbaa8809661058bb07
Headers show

Comments

natosha@unity3d.com - Feb. 9, 2013, 4:06 p.m.
# HG changeset patch
# User Na'Tosha Bard <natosha@unity3d.com>
# Date 1360425721 0
# Node ID ccdd9920f705df682210edc2b222e3fba236e539
# Parent  42691426804311ace53611264cb3ed5f7da176d3
largefiles: fix test and check code
Augie Fackler - Feb. 9, 2013, 4:06 p.m.
queued, thanks

On Feb 9, 2013, at 4:06 PM, natosha@unity3d.com wrote:

> # HG changeset patch
> # User Na'Tosha Bard <natosha@unity3d.com>
> # Date 1360425721 0
> # Node ID ccdd9920f705df682210edc2b222e3fba236e539
> # Parent  42691426804311ace53611264cb3ed5f7da176d3
> largefiles: fix test and check code
> 
> diff -r 426914268043 -r ccdd9920f705 hgext/largefiles/overrides.py
> --- a/hgext/largefiles/overrides.py	Sat Feb 09 15:08:21 2013 +0000
> +++ b/hgext/largefiles/overrides.py	Sat Feb 09 16:02:01 2013 +0000
> @@ -739,7 +739,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)
> diff -r 426914268043 -r ccdd9920f705 tests/test-largefiles-cache.t
> --- a/tests/test-largefiles-cache.t	Sat Feb 09 15:08:21 2013 +0000
> +++ 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"),

Patch

diff -r 426914268043 -r ccdd9920f705 hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Sat Feb 09 15:08:21 2013 +0000
+++ b/hgext/largefiles/overrides.py	Sat Feb 09 16:02:01 2013 +0000
@@ -739,7 +739,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)
diff -r 426914268043 -r ccdd9920f705 tests/test-largefiles-cache.t
--- a/tests/test-largefiles-cache.t	Sat Feb 09 15:08:21 2013 +0000
+++ 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"),