##// END OF EJS Templates
rebase: unhide original working directory node as well (issue5219)...
Martin von Zweigbergk -
r31297:f5c71e98 default
parent child Browse files
Show More
@@ -250,7 +250,7 b' class rebaseruntime(object):'
250 250 repo.ui.debug('computed skipped revs: %s\n' %
251 251 (' '.join(str(r) for r in sorted(skipped)) or None))
252 252 repo.ui.debug('rebase status resumed\n')
253 _setrebasesetvisibility(repo, set(state.keys()))
253 _setrebasesetvisibility(repo, set(state.keys()) | set([originalwd]))
254 254
255 255 self.originalwd = originalwd
256 256 self.target = target
@@ -1203,7 +1203,8 b' def buildstate(repo, dest, rebaseset, co'
1203 1203 dest: context
1204 1204 rebaseset: set of rev
1205 1205 '''
1206 _setrebasesetvisibility(repo, set(rebaseset))
1206 originalwd = repo['.'].rev()
1207 _setrebasesetvisibility(repo, set(rebaseset) | set([originalwd]))
1207 1208
1208 1209 # This check isn't strictly necessary, since mq detects commits over an
1209 1210 # applied patch. But it prevents messing up the working directory when
@@ -1288,7 +1289,7 b' def buildstate(repo, dest, rebaseset, co'
1288 1289 state[r] = revpruned
1289 1290 else:
1290 1291 state[r] = revprecursor
1291 return repo['.'].rev(), dest.rev(), state
1292 return originalwd, dest.rev(), state
1292 1293
1293 1294 def clearrebased(ui, repo, state, skipped, collapsedas=None):
1294 1295 """dispose of rebased revision at the end of the rebase
@@ -279,11 +279,27 b" even though it is hidden (until we're mo"
279 279 $ hg --hidden up -qr 'first(hidden())'
280 280 $ hg rebase --rev 13 --dest 15
281 281 rebasing 13:98f6af4ee953 "C"
282 transaction abort!
283 rollback completed
284 abort: hidden revision '1'!
285 (use --hidden to access hidden revisions)
286 [255]
282 $ hg log -G
283 o 16:294a2b93eb4d C
284 |
285 o 15:627d46148090 D
286 |
287 | o 12:462a34d07e59 B
288 | |
289 | o 11:4596109a6a43 D
290 | |
291 | o 7:02de42196ebe H
292 | |
293 +---o 6:eea13746799a G
294 | |/
295 | o 5:24b6387c8c8c F
296 | |
297 o | 4:9520eea781bc E
298 |/
299 | @ 1:42ccdea3bb16 B
300 |/
301 o 0:cd010b8cd998 A
302
287 303
288 304 $ cd ..
289 305
General Comments 0
You need to be logged in to leave comments. Login now