Show More
@@ -167,6 +167,8 class dirstate(object): | |||||
167 | self._dirty = False |
|
167 | self._dirty = False | |
168 |
|
168 | |||
169 | def copy(self, source, dest): |
|
169 | def copy(self, source, dest): | |
|
170 | if source == dest: | |||
|
171 | return | |||
170 | self._dirty = True |
|
172 | self._dirty = True | |
171 | self._copymap[dest] = source |
|
173 | self._copymap[dest] = source | |
172 |
|
174 |
@@ -688,7 +688,7 class localrepository(repo.repository): | |||||
688 |
|
688 | |||
689 | meta = {} |
|
689 | meta = {} | |
690 | cp = self.dirstate.copied(fn) |
|
690 | cp = self.dirstate.copied(fn) | |
691 | if cp: |
|
691 | if cp and cp != fn: | |
692 | # Mark the new revision of this file as a copy of another |
|
692 | # Mark the new revision of this file as a copy of another | |
693 | # file. This copy data will effectively act as a parent |
|
693 | # file. This copy data will effectively act as a parent | |
694 | # of this new revision. If this is a merge, the first |
|
694 | # of this new revision. If this is a merge, the first |
@@ -117,7 +117,7 o branch=old3 11 branch trunk@1 into ol | |||||
117 | | | | |
|
117 | | | | | |
118 | | o | branch= 3 change a files: a |
|
118 | | o | branch= 3 change a files: a | |
119 | | | | |
|
119 | | | | | |
120 |
| | o branch=old 2 branch trunk, remove c files: |
|
120 | | | o branch=old 2 branch trunk, remove c files: | |
121 | | |/ |
|
121 | | |/ | |
122 | | o branch= 1 hello files: a b c |
|
122 | | o branch= 1 hello files: a b c | |
123 | |/ |
|
123 | |/ |
General Comments 0
You need to be logged in to leave comments.
Login now