Show More
@@ -1096,12 +1096,6 b' class queue(object):' | |||
|
1096 | 1096 | m, a, r, d = repo.status(qp, top)[:4] |
|
1097 | 1097 | if d: |
|
1098 | 1098 | raise util.Abort(_("deletions found between repo revs")) |
|
1099 | for f in m: | |
|
1100 | getfile(f, mmap[f], mmap.flags(f)) | |
|
1101 | for f in r: | |
|
1102 | getfile(f, mmap[f], mmap.flags(f)) | |
|
1103 | for f in m + r: | |
|
1104 | repo.dirstate.normal(f) | |
|
1105 | 1099 | for f in a: |
|
1106 | 1100 | try: |
|
1107 | 1101 | os.unlink(repo.wjoin(f)) |
@@ -1111,6 +1105,12 b' class queue(object):' | |||
|
1111 | 1105 | try: os.removedirs(os.path.dirname(repo.wjoin(f))) |
|
1112 | 1106 | except: pass |
|
1113 | 1107 | repo.dirstate.forget(f) |
|
1108 | for f in m: | |
|
1109 | getfile(f, mmap[f], mmap.flags(f)) | |
|
1110 | for f in r: | |
|
1111 | getfile(f, mmap[f], mmap.flags(f)) | |
|
1112 | for f in m + r: | |
|
1113 | repo.dirstate.normal(f) | |
|
1114 | 1114 | repo.dirstate.setparents(qp, nullid) |
|
1115 | 1115 | for patch in reversed(self.applied[start:end]): |
|
1116 | 1116 | self.ui.status(_("popping %s\n") % patch.name) |
@@ -561,3 +561,23 b' echo % test popping revisions not in wor' | |||
|
561 | 561 | hg qseries -v |
|
562 | 562 | hg up qparent |
|
563 | 563 | hg qpop |
|
564 | ||
|
565 | cd .. | |
|
566 | hg init deletion-order | |
|
567 | cd deletion-order | |
|
568 | ||
|
569 | touch a | |
|
570 | hg ci -Aqm0 | |
|
571 | ||
|
572 | hg qnew rename-dir | |
|
573 | hg rm a | |
|
574 | hg qrefresh | |
|
575 | ||
|
576 | mkdir a b | |
|
577 | touch a/a b/b | |
|
578 | hg add -q a b | |
|
579 | hg qrefresh | |
|
580 | ||
|
581 | echo % test popping must remove files added in subdirectories first | |
|
582 | hg qpop | |
|
583 | cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now