source-integration
source-integration copied to clipboard
Implement "fetch latest"
Looks like currently "Fetch latest" does the full fetch... It would be nice to fetch latest 100 or something like this instead
public function import_latest( $p_repo ) {
return $this->import_full( $p_repo );
This is not specific to Gitlab. For most (if not all) plugins, import_latest is actually the same as import_full indeed.
Contributions welcome.
In this case maybe it makes more sense to hide this button if plugin doesn't support it? Or raise an error "not implemented". Because in other case it causes confusion, especially in combination with different translation strings, they give user impression that some different action will be performed.
maybe it makes more sense to hide this button if plugin doesn't support it
I'm fine with that approach.
My svn post-commit script was broken for a little while, and so I'm in the situation where some kind of "fetch latest" would be nice... but is it at least harmless to press? Will it result in my latest commits being linked (good) but all old commits getting double linked (bad)?
OK, to answer my own question, it seems to do the correct/expected thing, yay.