Show More
@@ -2400,7 +2400,7 b' def rename(ui, repo, patch, name=None, *' | |||||
2400 | os.makedirs(destdir) |
|
2400 | os.makedirs(destdir) | |
2401 | util.rename(q.join(patch), absdest) |
|
2401 | util.rename(q.join(patch), absdest) | |
2402 | r = q.qrepo() |
|
2402 | r = q.qrepo() | |
2403 | if r: |
|
2403 | if r and patch in r.dirstate: | |
2404 | wctx = r[None] |
|
2404 | wctx = r[None] | |
2405 | wlock = r.wlock() |
|
2405 | wlock = r.wlock() | |
2406 | try: |
|
2406 | try: |
@@ -81,3 +81,16 b' Test overlapping renames (issue2388)' | |||||
81 | A patchc |
|
81 | A patchc | |
82 | R patcha |
|
82 | R patcha | |
83 | $ cd .. |
|
83 | $ cd .. | |
|
84 | ||||
|
85 | Test renames with mq repo (issue2097) | |||
|
86 | ||||
|
87 | $ hg init issue2097 | |||
|
88 | $ cd issue2097 | |||
|
89 | $ hg qnew p0 | |||
|
90 | $ (cd .hg/patches && hg init) | |||
|
91 | $ hg qren p0 p1 | |||
|
92 | $ hg debugstate --mq | |||
|
93 | $ hg ci --mq -mq0 | |||
|
94 | nothing changed | |||
|
95 | [1] | |||
|
96 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now