on second thought, don't change sync to exit nonzero on successful conflicted merge resolution
For one thing, that breaks the test suite. May revisit later.
This commit is contained in:
parent
ac000241b5
commit
2a297dd6d1
3 changed files with 2 additions and 4 deletions
|
@ -276,7 +276,7 @@ mergeFrom branch = do
|
|||
return r
|
||||
runmerge a = ifM a
|
||||
( return True
|
||||
, void resolveMerge >> return False
|
||||
, resolveMerge
|
||||
)
|
||||
|
||||
{- Resolves a conflicted merge. It's important that any conflicts be
|
||||
|
|
2
Test.hs
2
Test.hs
|
@ -759,7 +759,7 @@ test_conflict_resolution env = "automatic conflict resolution" ~:
|
|||
{- Sync twice in r1 so it gets the conflict resolution
|
||||
- update from r2 -}
|
||||
forM_ [r1, r2, r1] $ \r -> indir env r $ do
|
||||
git_annex env "sync" [] @? "sync failed in " ++ rname r
|
||||
git_annex env "sync" ["--force"] @? "sync failed in " ++ rname r
|
||||
{- After the sync, it should be possible to get all
|
||||
- files. This includes both sides of the conflict,
|
||||
- although the filenames are not easily predictable.
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -11,8 +11,6 @@ git-annex (5.20131102) UNRELEASED; urgency=low
|
|||
"git status" won't work in them.
|
||||
* The -c option now not only modifies the git configuration seen by
|
||||
git-annex, but it is passed along to every git command git-annex runs.
|
||||
* sync: When there are merge conflicts that get automatically resolved,
|
||||
exit nonzero at the end.
|
||||
* watcher: Avoid loop when adding a file owned by someone else fails
|
||||
in indirect mode because its permissions cannot be modified.
|
||||
* webapp: Avoid encoding problems when displaying the daemon log file.
|
||||
|
|
Loading…
Reference in a new issue