Thread (7 messages) flat view 7 messages, 2 authors, 2016-06-15

Re: Can I remove stg sync --undo ?

From: Catalin Marinas <hidden>
Date: 2016-06-15 22:44:53

2008/7/4 Karl Hasselström [off-list ref]:
On 2008-07-03 23:02:28 +0100, Catalin Marinas wrote:
quoted
The sync performs three operations - push, merge and refresh (if the
refresh is automatic after merge, it doesn't update the backup
information since it was done by merge).

If merge fails, the refresh is manual after solving the conflicts. I
suspect this will be recorded as a separate step for undo
Yeah, the new undo stuff will currently handle sync just like e.g.
push and pop: write one log entry when the command's all done, plus
one extra just before the conflicting push if there is one. So you can
always undo the entire command; and in case of conflicts, you also
have the option of undoing just the conflicting push. Is this enough
for sync?
There are two operations that can conflict for sync - pushing a patch
and the actual sync'ing, i.e. a three-way merge with the patch to be
synchronised with (kind of fold).
quoted
(BTW, is resolved take into account for undo?).
Hmmm, what do you mean by "resolved"?
The current resolved command - the clearing of the conflicting entries
in the index.

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help