mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
Merge with stable
This commit is contained in:
commit
44b002a617
@ -844,7 +844,7 @@ class workingctx(changectx):
|
||||
if self._repo.dirstate[f] != 'r':
|
||||
self._repo.ui.warn(_("%s not removed!\n") % f)
|
||||
else:
|
||||
fctx = f in pctxs[0] and pctxs[0] or pctxs[1]
|
||||
fctx = f in pctxs[0] and pctxs[0][f] or pctxs[1][f]
|
||||
t = fctx.data()
|
||||
self._repo.wwrite(f, t, fctx.flags())
|
||||
self._repo.dirstate.normal(f)
|
||||
|
@ -59,4 +59,25 @@ Test patch being renamed before committed:
|
||||
|
||||
$ cd ..
|
||||
|
||||
Test overlapping renames (issue2388)
|
||||
|
||||
$ hg init c
|
||||
$ cd c
|
||||
$ hg qinit -c
|
||||
$ echo a > a
|
||||
$ hg add
|
||||
adding a
|
||||
$ hg qnew patcha
|
||||
$ echo b > b
|
||||
$ hg add
|
||||
adding b
|
||||
$ hg qnew patchb
|
||||
$ hg ci --mq -m c1
|
||||
$ hg qrename patchb patchc
|
||||
$ hg qrename patcha patchb
|
||||
$ hg st --mq
|
||||
M patchb
|
||||
M series
|
||||
A patchc
|
||||
R patcha
|
||||
$ cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user