@@ -1777,39 +1777,32 @@ fn integrated_tips_stop_early_if_remote_is_not_configured() -> anyhow::Result<()
1777
1777
│ └── ·777b552 (⌂|🏘|✓|1)
1778
1778
│ └── ►:6[3]:anon:
1779
1779
│ └── ·ce4a760 (⌂|🏘|✓|1)
1780
- │ ├── ►:7[5]:anon:
1781
- │ │ └── ·01d0e1e (⌂|🏘|✓|1)
1782
- │ │ └── ►:5[6]:main
1783
- │ │ ├── ·4b3e5a8 (⌂|🏘|✓|1)
1784
- │ │ ├── ·34d0715 (⌂|🏘|✓|1)
1785
- │ │ └── ·eb5f731 (⌂|🏘|✓|1)
1780
+ │ ├── ►:7[4]:anon:
1781
+ │ │ └── ✂·01d0e1e (⌂|🏘|✓|1)
1786
1782
│ └── ►:8[4]:A-feat
1787
- │ ├── ·fea59b5 (⌂|🏘|✓|1)
1788
- │ └── ·4deea74 (⌂|🏘|✓|1)
1789
- │ └── →:7:
1783
+ │ └── ✂·fea59b5 (⌂|🏘|✓|1)
1790
1784
└── ►:2[0]:origin/main
1791
1785
├── 🟣d0df794 (✓)
1792
1786
└── 🟣09c6e08 (✓)
1793
1787
└── ►:4[1]:anon:
1794
1788
└── 🟣7b9f260 (✓)
1795
- ├── →:5: (main)
1789
+ ├── ►:5[2]:main
1790
+ │ ├── 🟣4b3e5a8 (✓)
1791
+ │ ├── 🟣34d0715 (✓)
1792
+ │ └── 🟣eb5f731 (✓)
1796
1793
└── →:0: (A)
1797
1794
" ) ;
1798
1795
// Because the branch is integrated, the surrounding workspace isn't shown.
1799
1796
insta:: assert_snapshot!( graph_workspace( & graph. to_workspace( ) ?) , @r"
1800
1797
⌂:0:A <> ✓!
1801
1798
└── ≡:0:A
1802
- ├── :0:A
1803
- │ ├── ·79bbb29 (🏘️|✓)
1804
- │ ├── ·fc98174 (🏘️|✓)
1805
- │ ├── ·a381df5 (🏘️|✓)
1806
- │ ├── ·777b552 (🏘️|✓)
1807
- │ ├── ·ce4a760 (🏘️|✓)
1808
- │ └── ·01d0e1e (🏘️|✓)
1809
- └── :5:main
1810
- ├── ·4b3e5a8 (🏘️|✓)
1811
- ├── ·34d0715 (🏘️|✓)
1812
- └── ·eb5f731 (🏘️|✓)
1799
+ └── :0:A
1800
+ ├── ·79bbb29 (🏘️|✓)
1801
+ ├── ·fc98174 (🏘️|✓)
1802
+ ├── ·a381df5 (🏘️|✓)
1803
+ ├── ·777b552 (🏘️|✓)
1804
+ ├── ·ce4a760 (🏘️|✓)
1805
+ └── ✂️·01d0e1e (🏘️|✓)
1813
1806
" ) ;
1814
1807
1815
1808
// See what happens with an out-of-workspace HEAD and an arbitrary extra target.
@@ -2169,8 +2162,7 @@ fn workspace_obeys_limit_when_target_branch_is_missing() -> anyhow::Result<()> {
2169
2162
│ └── ·03ad472 (⌂|🏘|1)
2170
2163
│ └── ►:4[2]:A
2171
2164
│ ├── ·79bbb29 (⌂|🏘|✓|1)
2172
- │ ├── ·fc98174 (⌂|🏘|✓|1)
2173
- │ └── ✂·a381df5 (⌂|🏘|✓|1)
2165
+ │ └── ✂·fc98174 (⌂|🏘|✓|1)
2174
2166
└── ►:1[0]:origin/main
2175
2167
├── 🟣d0df794 (✓)
2176
2168
└── 🟣09c6e08 (✓)
@@ -2403,12 +2395,13 @@ fn partitions_with_long_and_short_connections_to_each_other() -> anyhow::Result<
2403
2395
" ) ;
2404
2396
2405
2397
add_workspace ( & mut meta) ;
2406
- let ( id , ref_name ) = id_at ( & repo, "main" ) ;
2398
+ let ( main_id , main_ref_name ) = id_at ( & repo, "main" ) ;
2407
2399
// Validate that we will perform long searches to connect connectable segments, without interfering
2408
2400
// with other searches that may take even longer.
2409
2401
// Also, without limit, we should be able to see all of 'main' without cut-off
2410
- let graph = Graph :: from_commit_traversal ( id, ref_name. clone ( ) , & * meta, standard_options ( ) ) ?
2411
- . validated ( ) ?;
2402
+ let graph =
2403
+ Graph :: from_commit_traversal ( main_id, main_ref_name. clone ( ) , & * meta, standard_options ( ) ) ?
2404
+ . validated ( ) ?;
2412
2405
insta:: assert_snapshot!( graph_tree( & graph) , @r"
2413
2406
├── 📕►►►:1[0]:gitbutler/workspace
2414
2407
│ └── ·41ed0e4 (⌂|🏘)
@@ -2473,9 +2466,13 @@ fn partitions_with_long_and_short_connections_to_each_other() -> anyhow::Result<
2473
2466
// When setting a limit when traversing 'main', it is respected.
2474
2467
// We still want it to be found and connected though, and it's notable that the limit kicks in
2475
2468
// once everything reconciled.
2476
- let graph =
2477
- Graph :: from_commit_traversal ( id, ref_name, & * meta, standard_options ( ) . with_limit_hint ( 1 ) ) ?
2478
- . validated ( ) ?;
2469
+ let graph = Graph :: from_commit_traversal (
2470
+ main_id,
2471
+ main_ref_name,
2472
+ & * meta,
2473
+ standard_options ( ) . with_limit_hint ( 1 ) ,
2474
+ ) ?
2475
+ . validated ( ) ?;
2479
2476
insta:: assert_snapshot!( graph_tree( & graph) , @r"
2480
2477
├── 📕►►►:1[0]:gitbutler/workspace
2481
2478
│ └── ·41ed0e4 (⌂|🏘)
@@ -2488,12 +2485,7 @@ fn partitions_with_long_and_short_connections_to_each_other() -> anyhow::Result<
2488
2485
│ │ ├── ·f49c977 (⌂|🏘|✓|1)
2489
2486
│ │ ├── ·7b7ebb2 (⌂|🏘|✓|1)
2490
2487
│ │ ├── ·dca4960 (⌂|🏘|✓|1)
2491
- │ │ ├── ·11c29b8 (⌂|🏘|✓|1)
2492
- │ │ ├── ·c32dd03 (⌂|🏘|✓|1)
2493
- │ │ ├── ·b625665 (⌂|🏘|✓|1)
2494
- │ │ ├── ·a821094 (⌂|🏘|✓|1)
2495
- │ │ ├── ·bce0c5e (⌂|🏘|✓|1)
2496
- │ │ └── ·3183e43 (⌂|🏘|✓|1)
2488
+ │ │ └── ✂·11c29b8 (⌂|🏘|✓|1)
2497
2489
│ └── ►:7[3]:long-main-to-workspace
2498
2490
│ ├── ·77f31a0 (⌂|🏘|✓)
2499
2491
│ ├── ·eb17e31 (⌂|🏘|✓)
@@ -2529,12 +2521,7 @@ fn partitions_with_long_and_short_connections_to_each_other() -> anyhow::Result<
2529
2521
├── ·f49c977 (🏘️|✓)
2530
2522
├── ·7b7ebb2 (🏘️|✓)
2531
2523
├── ·dca4960 (🏘️|✓)
2532
- ├── ·11c29b8 (🏘️|✓)
2533
- ├── ·c32dd03 (🏘️|✓)
2534
- ├── ·b625665 (🏘️|✓)
2535
- ├── ·a821094 (🏘️|✓)
2536
- ├── ·bce0c5e (🏘️|✓)
2537
- └── ·3183e43 (🏘️|✓)
2524
+ └── ✂️·11c29b8 (🏘️|✓)
2538
2525
" ) ;
2539
2526
2540
2527
// From the workspace, even without limit, we don't traverse all of 'main' as it's uninteresting.
0 commit comments