Bug 1585192 Comment 9 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Confirmed. MozPhab shouldn't fail like that.

Steps to replicate in Suite:
```
echo a > A
hg add A
hg commit -m A
echo b > B
hg add B
hg commit -m B
moz-phab -b 1 -y
echo c > C
hg add C
hg commit -m C
hg histedit
# C > A[P] > B[P]
moz-phab -b 1 -y --trace 
```
This results in:
```
...
rebasing 8:886084132361 "Bug 1 - A"
rebasing 9:b1f6928e442a "Bug 1 - B" (moz-phab_b1f6928e442a)
abort: hidden revision 'b1f6928e442abdddd4f812a874c2d5ec0431abcd' was rewritten as: 4c142195bfcc!
...
```

The error:
```
ERROR    2020-07-22 06:16:49,394 Traceback (most recent call last):
  File "/home/phab/review/mozphab/subprocess_wrapper.py", line 80, in check_output
    output = subprocess.check_output(command, **kwargs)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['hg', '--config', 'extensions.rebase=', '--pager', 'never', '--config', 'rebase.experimental.inmemory=true', 'log', '-T', '{node}', '-r', 'parents(82a3caf96ff3909fb6aefbb3c4634a822c049c0f)']' returned non-zero exit status 255.
```
Confirmed. MozPhab shouldn't fail like that.

Steps to replicate in Suite (every commit changes different file to avoid conflicts):
```
echo a > A; hg add A; hg commit -m A
echo b > B; hg add B; hg commit -m B
moz-phab -b 1 -y
echo c > C; hg add C; hg commit -m C
hg histedit
# C > A[P] > B[P]
moz-phab -b 1 -y --trace 
```
This results in:
```
...
rebasing 8:886084132361 "Bug 1 - A"
rebasing 9:b1f6928e442a "Bug 1 - B" (moz-phab_b1f6928e442a)
abort: hidden revision 'b1f6928e442abdddd4f812a874c2d5ec0431abcd' was rewritten as: 4c142195bfcc!
...
```

The error:
```
ERROR    2020-07-22 06:16:49,394 Traceback (most recent call last):
  File "/home/phab/review/mozphab/subprocess_wrapper.py", line 80, in check_output
    output = subprocess.check_output(command, **kwargs)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['hg', '--config', 'extensions.rebase=', '--pager', 'never', '--config', 'rebase.experimental.inmemory=true', 'log', '-T', '{node}', '-r', 'parents(82a3caf96ff3909fb6aefbb3c4634a822c049c0f)']' returned non-zero exit status 255.
```
Confirmed. MozPhab shouldn't fail like that.

Steps to replicate in Suite (every commit changes different file to avoid conflicts):
```
echo a > A; hg add A; hg commit -m A
echo b > B; hg add B; hg commit -m B
moz-phab -b 1 -y
echo c > C; hg add C; hg commit -m C
hg histedit
# C < A[P] < B[P]
moz-phab -b 1 -y --trace 
```
This results in:
```
...
rebasing 8:886084132361 "Bug 1 - A"
rebasing 9:b1f6928e442a "Bug 1 - B" (moz-phab_b1f6928e442a)
abort: hidden revision 'b1f6928e442abdddd4f812a874c2d5ec0431abcd' was rewritten as: 4c142195bfcc!
...
```

The error:
```
ERROR    2020-07-22 06:16:49,394 Traceback (most recent call last):
  File "/home/phab/review/mozphab/subprocess_wrapper.py", line 80, in check_output
    output = subprocess.check_output(command, **kwargs)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['hg', '--config', 'extensions.rebase=', '--pager', 'never', '--config', 'rebase.experimental.inmemory=true', 'log', '-T', '{node}', '-r', 'parents(82a3caf96ff3909fb6aefbb3c4634a822c049c0f)']' returned non-zero exit status 255.
```
Confirmed. MozPhab shouldn't fail like that.

Steps to replicate in Suite (every commit changes different file to avoid conflicts):
```
echo a > A; hg add A; hg commit -m A
echo b > B; hg add B; hg commit -m B
moz-phab -b 1 -y
echo c > C; hg add C; hg commit -m C
hg histedit
# C < A[D1] < B[D2]
moz-phab -b 1 -y --trace 
```
This results in:
```
...
rebasing 8:886084132361 "Bug 1 - A"
rebasing 9:b1f6928e442a "Bug 1 - B" (moz-phab_b1f6928e442a)
abort: hidden revision 'b1f6928e442abdddd4f812a874c2d5ec0431abcd' was rewritten as: 4c142195bfcc!
...
```

The error:
```
ERROR    2020-07-22 06:16:49,394 Traceback (most recent call last):
  File "/home/phab/review/mozphab/subprocess_wrapper.py", line 80, in check_output
    output = subprocess.check_output(command, **kwargs)
  File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['hg', '--config', 'extensions.rebase=', '--pager', 'never', '--config', 'rebase.experimental.inmemory=true', 'log', '-T', '{node}', '-r', 'parents(82a3caf96ff3909fb6aefbb3c4634a822c049c0f)']' returned non-zero exit status 255.
```

Back to Bug 1585192 Comment 9