Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_repo_content_list.clas.abap class zcl_abapgit_repo_content_list { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_REPO_CONTENT_LIST'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {"MI_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MI_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "C_SORTKEY": {"type": () => {return new abap.types.Structure({ "default": new abap.types.Integer({qualifiedName: "I"}), "parent_dir": new abap.types.Integer({qualifiedName: "I"}), "dir": new abap.types.Integer({qualifiedName: "I"}), "orphan": new abap.types.Integer({qualifiedName: "I"}), "changed": new abap.types.Integer({qualifiedName: "I"}), "inactive": new abap.types.Integer({qualifiedName: "I"})}, undefined, undefined, {}, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"}}; static METHODS = {"BUILD_REPO_ITEMS": {"visibility": "I", "parameters": {"RT_REPO_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt");}, "is_optional": " "}}}, "BUILD_FOLDERS": {"visibility": "I", "parameters": {"IV_CUR_DIR": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "CT_REPO_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt");}, "is_optional": " "}}}, "DETERMINE_TRANSPORTS": {"visibility": "I", "parameters": {"CT_REPO_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt");}, "is_optional": " "}}}, "FILTER_CHANGES": {"visibility": "I", "parameters": {"CT_REPO_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt");}, "is_optional": " "}}}, "CHECK_REPO_SIZE": {"visibility": "I", "parameters": {}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"II_REPO": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"});}, "is_optional": " "}}}, "LIST": {"visibility": "U", "parameters": {"RT_REPO_ITEMS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt");}, "is_optional": " "}, "IV_PATH": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_BY_FOLDERS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_CHANGES_ONLY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_TRANSPORTS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "GET_LOG": {"visibility": "U", "parameters": {"RI_LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}}}}; #mi_repo; #mi_log; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "build_repo_items": this.#build_repo_items.bind(this), "build_folders": this.#build_folders.bind(this), "determine_transports": this.#determine_transports.bind(this), "filter_changes": this.#filter_changes.bind(this), "check_repo_size": this.#check_repo_size.bind(this), "list": this.list.bind(this), "get_log": this.get_log.bind(this), }; this.#mi_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}); this.FRIENDS_ACCESS_INSTANCE["mi_repo"] = this.#mi_repo; this.#mi_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); this.FRIENDS_ACCESS_INSTANCE["mi_log"] = this.#mi_log; this.c_sortkey = zcl_abapgit_repo_content_list.c_sortkey; } async #build_folders(INPUT) { let iv_cur_dir = INPUT?.iv_cur_dir; if (iv_cur_dir?.getQualifiedName === undefined || iv_cur_dir.getQualifiedName() !== "STRING") { iv_cur_dir = undefined; } if (iv_cur_dir === undefined) { iv_cur_dir = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_cur_dir); } let ct_repo_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); if (INPUT && INPUT.ct_repo_items) {ct_repo_items = INPUT.ct_repo_items;} let lv_index = new abap.types.Integer({qualifiedName: "I"}); let lt_subitems = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); let ls_subitem = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}); let ls_folder = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}); let lo_state = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_REPO_ITEM_STATE", RTTIName: "\\CLASS=ZCL_ABAPGIT_REPO_ITEM_STATE"}); let fs_ls_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {})); for await (const unique598 of abap.statements.loop(ct_repo_items)) { fs_ls_item_.assign(unique598); lv_index.set(abap.builtin.sy.get().tabix); if (!(abap.compare.ne(fs_ls_item_.get().path, iv_cur_dir))) { continue; } if (abap.compare.eq((await abap.Classes['ZCL_ABAPGIT_PATH'].is_subdir({iv_path: fs_ls_item_.get().path, iv_parent: iv_cur_dir})), abap.builtin.abap_true)) { ls_subitem.get().changes.set(fs_ls_item_.get().changes); ls_subitem.get().path.set(fs_ls_item_.get().path); ls_subitem.get().lstate.set(fs_ls_item_.get().lstate); ls_subitem.get().rstate.set(fs_ls_item_.get().rstate); abap.statements.append({source: ls_subitem, target: lt_subitems}); } await abap.statements.deleteInternal(ct_repo_items,{index: lv_index}); } abap.statements.sort(lt_subitems,{by: [{component: "path"}]}); let unique599 = undefined; let unique600 = undefined; for await (const unique601 of abap.statements.loop(lt_subitems)) { fs_ls_item_.assign(unique601); unique600 = new abap.types.Integer().set(abap.builtin.sy.get().tabix.get() + 1); if (unique599 === undefined || abap.compare.eq(unique599.get().path, unique601.get().path) === false) { ls_folder.clear(); ls_folder.get().path.set(fs_ls_item_.get().path); ls_folder.get().sortkey.set(zcl_abapgit_repo_content_list.c_sortkey.get().dir); ls_folder.get().is_dir.set(abap.builtin.abap_true); lo_state.set(await (new abap.Classes['ZCL_ABAPGIT_REPO_ITEM_STATE']()).constructor_()); } ls_folder.get().changes.set(abap.operators.add(ls_folder.get().changes,fs_ls_item_.get().changes)); await lo_state.get().sum_with_repo_item({is_repo_item: fs_ls_item_}); let unique602 = undefined; for await (const unique603 of abap.statements.loop(lt_subitems,{from: unique600})) { unique602 = unique603; break; } if (unique602 === undefined || abap.compare.eq(unique602.get().path, unique601.get().path) === false) { ls_folder.get().lstate.set((await lo_state.get().local())); ls_folder.get().rstate.set((await lo_state.get().remote())); abap.statements.append({source: ls_folder, target: ct_repo_items}); } unique599 = unique601; } } async #build_repo_items() { let rt_repo_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); let lo_state = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_REPO_ITEM_STATE", RTTIName: "\\CLASS=ZCL_ABAPGIT_REPO_ITEM_STATE"}); let ls_file = new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}); let lt_status = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}), "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"sec_key","type":"SORTED","isUnique":false,"keyFields":["OBJ_TYPE","OBJ_NAME"]}]}, "zif_abapgit_definitions=>ty_results_tt"); let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let ls_previous = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let lv_changed_by = new abap.types.String({qualifiedName: "STRING"}); let fs_ls_status_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_RESULT-FILENAME"}), "package": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "match": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_result", undefined, {}, {})); let fs_ls_repo_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {})); lt_status.set((await abap.Classes['ZCL_ABAPGIT_REPO_STATUS'].calculate({ii_repo: this.#mi_repo, ii_log: this.#mi_log}))); let unique604 = undefined; let unique605 = undefined; for await (const unique606 of abap.statements.loop(lt_status)) { fs_ls_status_.assign(unique606); unique605 = new abap.types.Integer().set(abap.builtin.sy.get().tabix.get() + 1); if (unique604 === undefined || abap.compare.eq(unique604.get().obj_name, unique606.get().obj_name) === false) { fs_ls_repo_item_.assign(rt_repo_items.appendInitial()); fs_ls_repo_item_.get().obj_type.set(fs_ls_status_.get().obj_type); fs_ls_repo_item_.get().obj_name.set(fs_ls_status_.get().obj_name); fs_ls_repo_item_.get().inactive.set(fs_ls_status_.get().inactive); fs_ls_repo_item_.get().sortkey.set(zcl_abapgit_repo_content_list.c_sortkey.get().default); fs_ls_repo_item_.get().changes.set(abap.IntegerFactory.get(0)); fs_ls_repo_item_.get().path.set(fs_ls_status_.get().path); fs_ls_repo_item_.get().srcsystem.set(fs_ls_status_.get().srcsystem); lo_state.set(await (new abap.Classes['ZCL_ABAPGIT_REPO_ITEM_STATE']()).constructor_()); } if (abap.compare.initial(fs_ls_status_.get().filename) === false) { abap.statements.moveCorresponding(fs_ls_status_, ls_file); ls_file.get().is_changed.set(abap.builtin.boolc(abap.compare.eq(fs_ls_status_.get().match, abap.builtin.abap_false))); abap.statements.append({source: ls_file, target: fs_ls_repo_item_.get().files}); if (abap.compare.eq(fs_ls_status_.get().inactive, abap.builtin.abap_true) && abap.compare.gt(fs_ls_repo_item_.get().sortkey, zcl_abapgit_repo_content_list.c_sortkey.get().changed)) { fs_ls_repo_item_.get().sortkey.set(zcl_abapgit_repo_content_list.c_sortkey.get().inactive); } if (abap.compare.eq(ls_file.get().is_changed, abap.builtin.abap_true)) { fs_ls_repo_item_.get().sortkey.set(zcl_abapgit_repo_content_list.c_sortkey.get().changed); fs_ls_repo_item_.get().changes.set(abap.operators.add(fs_ls_repo_item_.get().changes,abap.IntegerFactory.get(1))); await lo_state.get().sum_with_status_item({is_status_item: fs_ls_status_}); } } if (abap.compare.gt(fs_ls_repo_item_.get().changes, abap.IntegerFactory.get(0)) && abap.compare.initial(fs_ls_repo_item_.get().obj_type) === false) { abap.statements.moveCorresponding(fs_ls_repo_item_, ls_item); if (abap.compare.eq(ls_previous, ls_item)) { fs_ls_repo_item_.get().changed_by.set(lv_changed_by); } else if (abap.compare.eq((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].exists({is_item: ls_item})), abap.builtin.abap_true)) { fs_ls_repo_item_.get().changed_by.set((await abap.Classes['ZCL_ABAPGIT_OBJECTS'].changed_by({is_item: ls_item}))); ls_previous.set(ls_item); lv_changed_by.set(fs_ls_repo_item_.get().changed_by); } ls_item.clear(); } let unique607 = undefined; for await (const unique608 of abap.statements.loop(lt_status,{from: unique605})) { unique607 = unique608; break; } if (unique607 === undefined || abap.compare.eq(unique607.get().obj_name, unique606.get().obj_name) === false) { if (abap.compare.initial(fs_ls_repo_item_.get().obj_type)) { fs_ls_repo_item_.get().sortkey.set(zcl_abapgit_repo_content_list.c_sortkey.get().orphan); } fs_ls_repo_item_.get().lstate.set((await lo_state.get().local())); fs_ls_repo_item_.get().rstate.set((await lo_state.get().remote())); fs_ls_repo_item_.get().packmove.set((await lo_state.get().is_reassigned())); } unique604 = unique606; } return rt_repo_items; } async #check_repo_size() { let lc_new_repo_size = new abap.types.Integer({qualifiedName: "I"}); lc_new_repo_size.set(10); let lt_remote = abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE_SIGNATURE-FILENAME"}), "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "data": new abap.types.XString({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_FILE-DATA"})}, "zif_abapgit_git_definitions=>ty_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"file_path","type":"SORTED","isUnique":true,"keyFields":["PATH","FILENAME"]},{"name":"file","type":"SORTED","isUnique":false,"keyFields":["FILENAME"]}]}, "zif_abapgit_git_definitions=>ty_files_tt"); lt_remote.set((await this.#mi_repo.get().zif_abapgit_repo$get_files_remote())); if (abap.compare.gt(abap.builtin.lines({val: lt_remote}), lc_new_repo_size)) { abap.statements.readTable(lt_remote,{keyName: "file_path", withKey: (i) => {return abap.compare.eq(i.path, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_root_dir) && abap.compare.eq(i.filename, abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_dot_abapgit);}, withKeyValue: [{key: (i) => {return i.path}, value: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_root_dir},{key: (i) => {return i.filename}, value: abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_dot_abapgit}], usesTableLine: false, withKeySimple: {"path": abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_root_dir,"filename": abap.Classes['ZIF_ABAPGIT_DEFINITIONS'].zif_abapgit_definitions$c_dot_abapgit}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await this.#mi_log.get().zif_abapgit_log$add_warning({iv_msg: new abap.types.String().set(`Cannot find .abapgit.xml - Is this an abapGit repository?`)}); } } } async constructor_(INPUT) { let ii_repo = INPUT?.ii_repo; if (ii_repo?.getQualifiedName === undefined || ii_repo.getQualifiedName() !== "ZIF_ABAPGIT_REPO") { ii_repo = undefined; } if (ii_repo === undefined) { ii_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}).set(INPUT.ii_repo); } this.#mi_repo.set(ii_repo); this.#mi_log.set(await (new abap.Classes['ZCL_ABAPGIT_LOG']()).constructor_()); return this; } async #determine_transports(INPUT) { let ct_repo_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); if (INPUT && INPUT.ct_repo_items) {ct_repo_items = INPUT.ct_repo_items;} let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let fs_ls_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {})); for await (const unique609 of abap.statements.loop(ct_repo_items)) { fs_ls_item_.assign(unique609); ls_item.get().obj_type.set(fs_ls_item_.get().obj_type); ls_item.get().obj_name.set(fs_ls_item_.get().obj_name); try { fs_ls_item_.get().transport.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_cts_api()).get().zif_abapgit_cts_api$get_transport_for_object({is_item: ls_item}))); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { } else { throw e; } } } } async #filter_changes(INPUT) { let ct_repo_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); if (INPUT && INPUT.ct_repo_items) {ct_repo_items = INPUT.ct_repo_items;} let fs_ls_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {})); await abap.statements.deleteInternal(ct_repo_items,{where: async (I) => {return abap.compare.eq(I.changes, abap.IntegerFactory.get(0)) && abap.compare.eq(I.inactive, abap.builtin.abap_false);}}); for await (const unique610 of abap.statements.loop(ct_repo_items,{where: async (I) => {return abap.compare.eq(I.inactive, abap.builtin.abap_false);},topEquals: {"inactive": abap.builtin.abap_false}})) { fs_ls_item_.assign(unique610); await abap.statements.deleteInternal(fs_ls_item_.get().files,{where: async (I) => {return abap.compare.eq(I.is_changed, abap.builtin.abap_false);}}); } } async get_log() { let ri_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); let li_repo_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); let lt_repo_msg = abap.types.TableFactory.construct(new abap.types.Structure({ "type": new abap.types.Character(1, {"qualifiedName":"sy-msgty"}), "id": new abap.types.Character(20, {"qualifiedName":"sy-msgid"}), "number": new abap.types.Numc({length: 3, qualifiedName: "sy-msgno"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_LOG=>TY_LOG_OUT-TEXT"}), "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "exception": new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"})}, "zif_abapgit_log=>ty_log_out", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_log=>ty_log_outs"); let lr_repo_msg = new abap.types.DataReference(new abap.types.Structure({ "type": new abap.types.Character(1, {"qualifiedName":"sy-msgty"}), "id": new abap.types.Character(20, {"qualifiedName":"sy-msgid"}), "number": new abap.types.Numc({length: 3, qualifiedName: "sy-msgno"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_LOG=>TY_LOG_OUT-TEXT"}), "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "exception": new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"})}, "zif_abapgit_log=>ty_log_out", undefined, {}, {})); ri_log.set(this.#mi_log); li_repo_log.set((await this.#mi_repo.get().zif_abapgit_repo$get_log())); if (abap.compare.initial(li_repo_log) === false) { lt_repo_msg.set((await li_repo_log.get().zif_abapgit_log$get_messages())); for await (const unique611 of abap.statements.loop(lt_repo_msg,{where: async (I) => {return abap.compare.ca(I.type, abap.CharacterFactory.get(2, 'EW'));}})) { lr_repo_msg.assign(unique611); let unique612 = lr_repo_msg.get().type; if (abap.compare.eq(unique612, abap.CharacterFactory.get(1, 'E'))) { await ri_log.get().zif_abapgit_log$add_error({iv_msg: lr_repo_msg.get().text}); } else if (abap.compare.eq(unique612, abap.CharacterFactory.get(1, 'W'))) { await ri_log.get().zif_abapgit_log$add_warning({iv_msg: lr_repo_msg.get().text}); } else { continue; } } } return ri_log; } async list(INPUT) { let rt_repo_items = abap.types.TableFactory.construct(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_item_tt"); let iv_path = INPUT?.iv_path; if (iv_path?.getQualifiedName === undefined || iv_path.getQualifiedName() !== "STRING") { iv_path = undefined; } if (iv_path === undefined) { iv_path = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_path); } let iv_by_folders = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_by_folders) {iv_by_folders.set(INPUT.iv_by_folders);} let iv_changes_only = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_changes_only) {iv_changes_only.set(INPUT.iv_changes_only);} let iv_transports = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_transports) {iv_transports.set(INPUT.iv_transports);} let fs_ls_repo_item_ = new abap.types.FieldSymbol(new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "sortkey": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-SORTKEY"}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-PATH"}), "is_dir": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "changes": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_ITEM-CHANGES"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "files": abap.types.TableFactory.construct(new abap.types.Structure({ "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-PATH"}), "filename": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_REPO_FILE-FILENAME"}), "is_changed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "rstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"}), "lstate": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_git_definitions=>ty_item_state"})}, "zif_abapgit_definitions=>ty_repo_file", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_repo_file_tt"), "changed_by": new abap.types.Character(12, {"qualifiedName":"SYUNAME","ddicName":"SYUNAME","description":"SYUNAME"}), "transport": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "packmove": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_repo_item", undefined, {}, {})); await this.#mi_log.get().zif_abapgit_log$clear(); rt_repo_items.set((await this.#build_repo_items())); await this.#check_repo_size(); if (abap.compare.eq((await this.#mi_repo.get().zif_abapgit_repo$has_remote_source()), abap.builtin.abap_false)) { for await (const unique613 of abap.statements.loop(rt_repo_items)) { fs_ls_repo_item_.assign(unique613); fs_ls_repo_item_.get().changes.clear(); fs_ls_repo_item_.get().lstate.clear(); fs_ls_repo_item_.get().rstate.clear(); } } if (abap.compare.eq(iv_by_folders, abap.builtin.abap_true)) { await this.#build_folders({iv_cur_dir: iv_path, ct_repo_items: rt_repo_items}); } if (abap.compare.eq(iv_changes_only, abap.builtin.abap_true)) { await this.#filter_changes({ct_repo_items: rt_repo_items}); } if (abap.compare.eq(iv_transports, abap.builtin.abap_true)) { await this.#determine_transports({ct_repo_items: rt_repo_items}); } abap.statements.sort(rt_repo_items,{by: [{component: "sortkey"},{component: "path"},{component: "obj_name"}]}); return rt_repo_items; } } abap.Classes['ZCL_ABAPGIT_REPO_CONTENT_LIST'] = zcl_abapgit_repo_content_list; zcl_abapgit_repo_content_list.c_sortkey = new abap.types.Structure({ "default": new abap.types.Integer({qualifiedName: "I"}), "parent_dir": new abap.types.Integer({qualifiedName: "I"}), "dir": new abap.types.Integer({qualifiedName: "I"}), "orphan": new abap.types.Integer({qualifiedName: "I"}), "changed": new abap.types.Integer({qualifiedName: "I"}), "inactive": new abap.types.Integer({qualifiedName: "I"})}, undefined, undefined, {}, {}); zcl_abapgit_repo_content_list.c_sortkey.get().default.set(9999); zcl_abapgit_repo_content_list.c_sortkey.get().parent_dir.set(0); zcl_abapgit_repo_content_list.c_sortkey.get().dir.set(1); zcl_abapgit_repo_content_list.c_sortkey.get().orphan.set(2); zcl_abapgit_repo_content_list.c_sortkey.get().changed.set(3); zcl_abapgit_repo_content_list.c_sortkey.get().inactive.set(4); export {zcl_abapgit_repo_content_list}; |