##// END OF EJS Templates
repoview: pin revisions for `local` and `other` when a merge is active...
Matt Harbison -
r45972:aaeccdb6 stable
parent child Browse files
Show More
@@ -62,6 +62,17 b' def pinnedrevs(repo):'
62 62 rev = cl.index.get_rev
63 63 pinned.update(rev(t[0]) for t in tags.values())
64 64 pinned.discard(None)
65
66 # Avoid cycle: mercurial.filemerge -> mercurial.templater ->
67 # mercurial.templatefuncs -> mercurial.revset -> mercurial.repoview ->
68 # mercurial.mergestate -> mercurial.filemerge
69 from . import mergestate
70
71 ms = mergestate.mergestate.read(repo)
72 if ms.active():
73 pinned.add(ms.localctx.rev())
74 pinned.add(ms.otherctx.rev())
75
65 76 return pinned
66 77
67 78
@@ -153,5 +153,29 b' Solve the conflict and go on:'
153 153 |/
154 154 o 0:draft 'A'
155 155
156 $ cat >> .hg/hgrc << EOF
157 > [experimental]
158 > evolution.createmarkers=True
159 > EOF
160
161 When updating away from a dirty, obsolete wdir, don't complain that the old p1
162 is filtered and requires --hidden.
163
164 $ echo conflict > A
165 $ hg debugobsolete 071d07019675449d53b7e312c65bcf28adbbdb64 965c486023dbfdc9c32c52dc249a231882fd5c17
166 1 new obsolescence markers
167 obsoleted 1 changesets
168 $ hg update -r 2 --config ui.merge=internal:merge --merge
169 merging A
170 warning: conflicts while merging A! (edit, then use 'hg resolve --mark')
171 1 files updated, 0 files merged, 1 files removed, 1 files unresolved
172 use 'hg resolve' to retry unresolved file merges
173 [1]
174 $ hg resolve A
175 merging A
176 warning: conflicts while merging A! (edit, then use 'hg resolve --mark')
177 [1]
178
179 $ hg up -C -q .
156 180
157 181 $ cd ..
@@ -1795,6 +1795,8 b' rebasestate may contain hidden hashes. "'
1795 1795 $ hg log -G
1796 1796 @ 2:b18e25de2cf5 D
1797 1797 |
1798 | % 1:2ec65233581b B (pruned using prune)
1799 |/
1798 1800 o 0:426bada5c675 A
1799 1801
1800 1802 $ hg summary
@@ -1802,8 +1804,8 b' rebasestate may contain hidden hashes. "'
1802 1804 D
1803 1805 branch: default
1804 1806 commit: 1 modified, 1 added, 1 unknown, 1 unresolved
1805 update: (current)
1806 phases: 2 draft
1807 update: 1 new changesets, 2 branch heads (merge)
1808 phases: 3 draft
1807 1809 rebase: 0 rebased, 2 remaining (rebase --continue)
1808 1810
1809 1811 $ hg rebase --abort
General Comments 0
You need to be logged in to leave comments. Login now