Show More
@@ -254,7 +254,7 b' def stripcmd(ui, repo, *revs, **opts):' | |||||
254 |
|
254 | |||
255 | # only reset the dirstate for files that would actually change |
|
255 | # only reset the dirstate for files that would actually change | |
256 | # between the working context and uctx |
|
256 | # between the working context and uctx | |
257 |
descendantrevs = repo.revs(b"%d |
|
257 | descendantrevs = repo.revs(b"only(., %d)", uctx.rev()) | |
258 | changedfiles = [] |
|
258 | changedfiles = [] | |
259 | for rev in descendantrevs: |
|
259 | for rev in descendantrevs: | |
260 | # blindly reset the files, regardless of what actually changed |
|
260 | # blindly reset the files, regardless of what actually changed |
@@ -1179,7 +1179,11 b' test stripping a working directory paren' | |||||
1179 |
|
1179 | |||
1180 | stripping a set containing a merge properly reset file content, including items on other branches |
|
1180 | stripping a set containing a merge properly reset file content, including items on other branches | |
1181 |
|
1181 | |||
1182 |
|
|
1182 | The added file is moved to unknown, which is the behavior we have been seeing for other `hg strip --keep` call. | |
|
1183 | ||||
|
1184 | stripping a set containing a merge properly reset file content, including items on other branches | |||
|
1185 | ||||
|
1186 | The added file is moved to unknown, which is the behavior we have been seeing for other `hg strip --keep` call. | |||
1183 |
|
1187 | |||
1184 | $ hg unbundle -u $TESTTMP/issue4736/.hg/strip-backup/35358f982181-a6f020aa-backup.hg |
|
1188 | $ hg unbundle -u $TESTTMP/issue4736/.hg/strip-backup/35358f982181-a6f020aa-backup.hg | |
1185 | adding changesets |
|
1189 | adding changesets | |
@@ -1260,13 +1264,10 b' BROKEN, The added file should move to un' | |||||
1260 | summary: commitA |
|
1264 | summary: commitA | |
1261 |
|
1265 | |||
1262 |
|
1266 | |||
1263 | BROKEN: 'bar.txt' cannot possibly be clean since it is not part of the current |
|
|||
1264 | working copy parents. |
|
|||
1265 |
|
||||
1266 | $ hg status -A |
|
1267 | $ hg status -A | |
|
1268 | ? bar.txt | |||
1267 | C a |
|
1269 | C a | |
1268 | C b |
|
1270 | C b | |
1269 | C bar.txt |
|
|||
1270 | C foo.txt |
|
1271 | C foo.txt | |
1271 | $ cat bar.txt |
|
1272 | $ cat bar.txt | |
1272 | bar |
|
1273 | bar |
General Comments 0
You need to be logged in to leave comments.
Login now