source-integration icon indicating copy to clipboard operation
source-integration copied to clipboard

Implement "fetch latest"

Open okainov opened this issue 5 years ago • 5 comments

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 );

okainov avatar Aug 16 '18 22:08 okainov

This is not specific to Gitlab. For most (if not all) plugins, import_latest is actually the same as import_full indeed.

Contributions welcome.

dregad avatar Aug 21 '18 14:08 dregad

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.

okainov avatar Aug 21 '18 15:08 okainov

maybe it makes more sense to hide this button if plugin doesn't support it

I'm fine with that approach.

dregad avatar Aug 22 '18 07:08 dregad

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)?

seanm avatar Jun 23 '21 17:06 seanm

OK, to answer my own question, it seems to do the correct/expected thing, yay.

seanm avatar Jun 27 '21 17:06 seanm