[PATCH] largefiles: fix addremove when no lagefiles are specified

Na'Tosha Bard natosha at unity3d.com
Mon Jan 23 12:25:42 UTC 2012


Ignore this one; I can't type apparently.  Resent with correct commit
message.

2012/1/23 Na'Tosha Bard <natosha at unity3d.com>

> # HG changeset patch
> # User Na'Tosha Bard <natosha at unity3d.com>
> # Date 1327321306 -3600
> # Node ID 56dd4f91b514abff062acf9a9e38f60828a10dad
> # Parent  878bc4a62a735a1624e9b69c672d5fb5074d4855
> largefiles: fix addremove when no lagefiles are specified
>
> diff -r 878bc4a62a73 -r 56dd4f91b514 hgext/largefiles/overrides.py
> --- a/hgext/largefiles/overrides.py     Thu Jan 19 14:31:05 2012 -0600
> +++ b/hgext/largefiles/overrides.py     Mon Jan 23 13:21:46 2012 +0100
> @@ -895,9 +895,10 @@
>     # to have handled by original addremove.  Monkey patching here makes
> sure
>     # we don't remove the standin in the largefiles code, preventing a very
>     # confused state later.
> -    repo._isaddremove = True
> -    remove_largefiles(ui, repo, *missing, **opts)
> -    repo._isaddremove = False
> +    if missing:
> +        repo._isaddremove = True
> +        remove_largefiles(ui, repo, *missing, **opts)
> +        repo._isaddremove = False
>     # Call into the normal add code, and any files that *should* be added
> as
>     # largefiles will be
>     add_largefiles(ui, repo, *pats, **opts)
>



-- 
*Na'Tosha Bard*
Build & Infrastructure Developer | Unity Technologies - Copenhagen

*E-Mail:* natosha at unity3d.com
*Skype:* natosha.bard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20120123/21c2a3e2/attachment-0002.html>


More information about the Mercurial-devel mailing list