[PATCH 2 of 3] subrepo: fix diff/status -S of added/removed subrepo (issue3056)

Matt Mackall mpm at selenic.com
Sun May 20 18:23:58 CDT 2012


On Sun, 2012-05-20 at 21:27 +0300, Dov Feldstern wrote:
> # HG changeset patch
> # User Dov Feldstern <dfeldstern at gmail.com>
> # Date 1337537636 -10800
> # Branch stable
> # Node ID 5114a02e115b5d7176226fa624d0326a527d938a
> # Parent  4585b54fbedcc83df50088ed37a3d5ade772032a
> subrepo: fix diff/status -S of added/removed subrepo (issue3056)

When I lay out a bullet point list like this:

http://mercurial.markmail.org/thread/ojhevk24pdyky53a

..I'm really really hoping to get one patch per bullet point.

> +            subrepo1 = types[sub2type](ctx1, subpath,
> +                                       (sub2source, node.hex(node.nullid)))

So how does this work for non-Mercurial subrepos? This is where/why we
need a null constructor: a type-specific method of getting an empty
revision to compare against.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list