HVVRC2GNC3D5PULNDL5XSPOQVJS2QWVU7GDGYSWLNYTK73UPYMHQC
5ZDRHVXDP5DP5E2RXRPQX4VAKVHGA5MVFYUPI2D42BAWWUGIRZNAC
64J6B76FTOAIPF2HGPIQYU523COLWHN7QOVC3XY42PHKC3GCLMZAC
B4SKYP3Y5R7UPPGLLZV7OK3SIN4TRAJ3IL6FS3T7ZFZF5HTEQARQC
5ISTB4TW2BH52Y7U4XSVQ5PBHWIHIN2Q26V5M25HLWWHKJIPCNOQC
6H4B4UJQ4PQULICKBZ5U55QU2BWIH2VNGRCUVYR7KDYOGC7MQU7QC
ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC
NCBEWRYEEJMJO37SHY7XCNFZYWLT5HUHCKN47UGSEY3FFWFX6QFQC
7DXA53YQGL4O53NUQOTRSDL4OROAJME6X37WZZMGST6TIBTXGG3AC
GNQD74OZ56J2R23GVUGFP3G5KVML2KDZ4OUZK6SVLSM7HVO2WOCAC
* Apply all the oustanding changes from another channel to the current one
* @param targetChannel The channel from which changes will be applied
*/
async mergeChannel (targetChannel: PijulChannel): Promise<void> {
const outstandingChanges = await this.repository.compareChannelChanges(targetChannel.name);
for await (const change of outstandingChanges.reverse()) {
this.repository.applyChange(change);
}
}
/**
* Apply all the oustanding changes from another channel to the current one
* @param repository The repository that contains the channel
* @param targetChannel The channel to be merged into the current one
*/
@command('pijul.mergeChannel', { repository: true })
async mergeChannel (repository: Repository, targetChannel: PijulChannel): Promise<void> {
await repository.mergeChannel(targetChannel);
await repository.refreshStatus();
}
/**