comparison tests/test-uncommit.t @ 3936:537fd9a86c06 mercurial-4.3

test-compat: merge mercurial-4.4 into mercurial-4.3
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 03 Aug 2018 00:22:50 +0200
parents d00f0c369bc7 e5ba6531503e
children
comparison
equal deleted inserted replaced
3935:9af0e2b0bdd7 3936:537fd9a86c06
231 $ hg bookmarks 231 $ hg bookmarks
232 * touncommit-bm 4:e8db4aa611f6 232 * touncommit-bm 4:e8db4aa611f6
233 touncommit-bm-inactive 4:e8db4aa611f6 233 touncommit-bm-inactive 4:e8db4aa611f6
234 unrelated 2:f63b90038565 234 unrelated 2:f63b90038565
235 $ hg debugobsolete 235 $ hg debugobsolete
236 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 236 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
237 237
238 Test phase is preserved, no local changes 238 Test phase is preserved, no local changes
239 239
240 $ hg up -C 3 --hidden 240 $ hg up -C 3 --hidden
241 8 files updated, 0 files merged, 1 files removed, 0 files unresolved 241 8 files updated, 0 files merged, 1 files removed, 0 files unresolved
242 (leaving bookmark touncommit-bm) 242 (leaving bookmark touncommit-bm)
243 working directory parent is obsolete! (5eb72dbe0cb4) 243 working directory parent is obsolete! (5eb72dbe0cb4)
244 (use 'hg evolve' to update to its successor: e8db4aa611f6) 244 (use 'hg evolve' to update to its successor: e8db4aa611f6)
245 $ hg --config extensions.purge= purge 245 $ hg --config extensions.purge= purge
246 $ hg uncommit -I 'set:added() and e' 246 $ hg uncommit -I 'set:added() and e'
247 2 new content-divergent changesets 247 2 new divergent changesets
248 $ hg st --copies 248 $ hg st --copies
249 A e 249 A e
250 $ hg st --copies --change . 250 $ hg st --copies --change .
251 M b 251 M b
252 M d 252 M d
277 | o 1:f15c744d48e8@default(draft) addmore 277 | o 1:f15c744d48e8@default(draft) addmore
278 | 278 |
279 o 0:07f494440405@default(draft) adda 279 o 0:07f494440405@default(draft) adda
280 280
281 $ hg debugobsolete 281 $ hg debugobsolete
282 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 282 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
283 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 283 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
284 284
285 Test --all 285 Test --all
286 286
287 $ hg up -C 3 --hidden 287 $ hg up -C 3 --hidden
288 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 288 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
289 working directory parent is obsolete! (5eb72dbe0cb4) 289 working directory parent is obsolete! (5eb72dbe0cb4)
290 (5eb72dbe0cb4 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) 290 (5eb72dbe0cb4 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue)
291 $ hg --config extensions.purge= purge 291 $ hg --config extensions.purge= purge
292 $ hg uncommit --all -X e 292 $ hg uncommit --all -X e
293 1 new content-divergent changesets 293 1 new divergent changesets
294 $ hg st --copies 294 $ hg st --copies
295 M b 295 M b
296 M d 296 M d
297 M j 297 M j
298 M o 298 M o
311 R n 311 R n
312 $ hg st --copies --change . 312 $ hg st --copies --change .
313 A e 313 A e
314 314
315 $ hg debugobsolete 315 $ hg debugobsolete
316 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 316 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
317 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 317 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
318 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 c4cbebac3751269bdf12d1466deabcc78521d272 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 318 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 c4cbebac3751269bdf12d1466deabcc78521d272 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
319 319
320 Display a warning if nothing left 320 Display a warning if nothing left
321 321
322 $ hg uncommit e 322 $ hg uncommit e
323 new changeset is empty 323 new changeset is empty
324 (use 'hg prune .' to remove it) 324 (use 'hg prune .' to remove it)
325 $ hg debugobsolete 325 $ hg debugobsolete
326 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 326 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 e8db4aa611f6d5706374288e6898e498f5c44098 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
327 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 327 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 a1d4c1ad76cc7eb5e8a36ef52396da334b6d59c5 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
328 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 c4cbebac3751269bdf12d1466deabcc78521d272 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 328 5eb72dbe0cb409d094e3b4ae8eaa30071c1b8730 c4cbebac3751269bdf12d1466deabcc78521d272 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
329 c4cbebac3751269bdf12d1466deabcc78521d272 4f1c269eab68720f54e88ce3c1dc02b2858b6b89 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'uncommit', 'user': 'test'} 329 c4cbebac3751269bdf12d1466deabcc78521d272 4f1c269eab68720f54e88ce3c1dc02b2858b6b89 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'user': 'test'}
330 330
331 Test instability warning 331 Test instability warning
332 332
333 $ hg ci -m touncommit 333 $ hg ci -m touncommit
334 $ echo unrelated > unrelated 334 $ echo unrelated > unrelated
335 $ hg ci -Am addunrelated unrelated 335 $ hg ci -Am addunrelated unrelated
336 $ hg previous 336 $ hg previous
337 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 337 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
338 [8] touncommit 338 [8] touncommit
339 $ hg uncommit aa 339 $ hg uncommit aa
340 1 new orphan changesets 340 1 new unstable changesets
341 341
342 Test uncommiting agains a different base 342 Test uncommiting agains a different base
343 343
344 $ hg cat b --rev . 344 $ hg cat b --rev .
345 b 345 b