gpick: match up remote series with local ones


this has two major use cases:
- it makes it possible to replace a partial local series with a partial
  remote one. without it, it would be necessary to drop the local series
  first, which would forego the check for local modifications.
- it makes it possible to pull in a tail extension of the remote series
  without using a partial series and an explicit parent.

Change-Id: Ib3f4d20c41b3012d5831ecf38c01542f70e4cd8b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
commita0e10fc4bccc7707caefbed856e53da4ff3b0881
parentd71a9aac9199b143dde8a8b257b3f2cc2946202a
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit timeWed, 1 Apr 2020 18:37:16 +0000