-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Mercurial tests and add tag validation #102
base: master
Are you sure you want to change the base?
Conversation
src/Liip/RMT/Config/Handler.php
Outdated
throw new Exception("Simple generator is not compatible with mercurial > 3."); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it's the right place to put this mercurial specific code... At first I was more expecting a new method on the VCS interface. Something like supportTaggingWithInteger()
. But then the error have to be raised after the config have been parsed, at the beginning of the release
action...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't really happy about this either.
Maybe a validateConfig
on VcsInterface
?
$action->validateContext(); | ||
} | ||
} | ||
Context::get('version-persister')->validateContext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a validateContext()
on the version-generator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, because the generator work is a bit different than the other actions and the persister and there's no need at the time.
Adding it once we need it won't be a big issue.
Can we merge ? please, pretty please, PLEASE ! PLEASE !
There is two last issues, my small comment about the |
@jeanmonod Whats with this PR? We should integrate the HG Tag check. All my HG tests are failing because of this. |
doing a minimal fix of the tests without the full improvement and better error reporting in #130 |
This should fix #77
What do you think @jeanmonod ?