File: reparent.tst

package info (click to toggle)
reposurgeon 4.38-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,500 kB
  • sloc: sh: 4,832; makefile: 514; python: 485; lisp: 115; awk: 91; ruby: 19
file content (32 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## Reparenting parents with and w/o tree preservation
set echo
set relax
read <simple.fi
set interactive
127 inspect
127..$ manifest
127,29 reparent
127 inspect
127..$ manifest
129,3 reparent --rebase
129 inspect
129 manifest

129 reparent
@par(129) resolve parents of root commit
129,127,3 reparent
@par(129) resolve parents of octopus merge

# this next one should fail because it would create a cycle
:123,:121 reparent --use-order
:121 inspect
:121 manifest
# swap the order of :123 and :121
:119,:123 reparent --use-order
:123 inspect
:123 manifest
(:119..:123)|(:119..:121) index
:123,:121 reparent --use-order
:121 inspect
:121 manifest
(:119..:123)|(:119..:121) index