Show More
@@ -1106,8 +1106,10 b' def manifestmerge(repo, wctx, p2, pa, br' | |||
|
1106 | 1106 | copied = set(copy.values()) |
|
1107 | 1107 | copied.update(movewithdir.values()) |
|
1108 | 1108 | |
|
1109 | if '.hgsubstate' in m1: | |
|
1110 |
# |
|
|
1109 | if '.hgsubstate' in m1 and wctx.rev() is None: | |
|
1110 | # Check whether sub state is modified, and overwrite the manifest | |
|
1111 | # to flag the change. If wctx is a committed revision, we shouldn't | |
|
1112 | # care for the dirty state of the working directory. | |
|
1111 | 1113 | if any(wctx.sub(s).dirty() for s in wctx.substate): |
|
1112 | 1114 | m1['.hgsubstate'] = modifiednodeid |
|
1113 | 1115 |
@@ -1941,3 +1941,43 b' and bad usernames:' | |||
|
1941 | 1941 | updating to branch default |
|
1942 | 1942 | abort: potentially unsafe url: 'ssh://-oProxyCommand=touch owned@example.com/path' (in subrepository "s") |
|
1943 | 1943 | [255] |
|
1944 | ||
|
1945 | Test convert subrepositories including merge (issue5526): | |
|
1946 | ||
|
1947 | $ hg init tconv | |
|
1948 | $ hg convert --config extensions.convert= -q t/s tconv/s | |
|
1949 | $ hg convert --config extensions.convert= -q t/s/ss tconv/s/ss | |
|
1950 | $ hg convert --config extensions.convert= -q t/t tconv/t | |
|
1951 | ||
|
1952 | convert shouldn't fail because of pseudo filenode: | |
|
1953 | ||
|
1954 | $ hg convert --config extensions.convert= t tconv | |
|
1955 | scanning source... | |
|
1956 | sorting... | |
|
1957 | converting... | |
|
1958 | 17 0 | |
|
1959 | 16 1 | |
|
1960 | 15 2 | |
|
1961 | 14 3 | |
|
1962 | 13 4 | |
|
1963 | 12 5 | |
|
1964 | 11 6 | |
|
1965 | 10 7 | |
|
1966 | 9 8 | |
|
1967 | 8 9 | |
|
1968 | 7 10 | |
|
1969 | 6 11 | |
|
1970 | 5 12 | |
|
1971 | 4 13 | |
|
1972 | 3 rm2 | |
|
1973 | 2 phasecheck4 | |
|
1974 | 1 16 | |
|
1975 | 0 branch before subrepo add | |
|
1976 | ||
|
1977 | converted .hgsubstate should point to valid nodes: | |
|
1978 | ||
|
1979 | $ hg up -R tconv 9 | |
|
1980 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
1981 | $ cat tconv/.hgsubstate | |
|
1982 | fc627a69481fcbe5f1135069e8a3881c023e4cf5 s | |
|
1983 | 60ca1237c19474e7a3978b0dc1ca4e6f36d51382 t |
General Comments 0
You need to be logged in to leave comments.
Login now