skilleter-thingy 0.0.92__py3-none-any.whl → 0.0.93__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of skilleter-thingy might be problematic. Click here for more details.

@@ -93,6 +93,11 @@ def branch_rebase(args, results, branch):
93
93
 
94
94
  logging.debug('No non-feature-branch parents found for %s. Feature branch parents could be: %s', branch, parents)
95
95
 
96
+ if not parents:
97
+ colour.write(f'[RED:WARNING]: Unable to rebase [BLUE:{branch}] branch as unable to determine its parent (no obvious candidates))', indent=4)
98
+ results['failed'].add(branch)
99
+ return
100
+
96
101
  # Cheat - if we have multiple possible parents and one is 'develop', 'main' or 'master'
97
102
  # choose it.
98
103
 
@@ -104,19 +109,14 @@ def branch_rebase(args, results, branch):
104
109
  elif 'develop' in parents:
105
110
  parent = 'develop'
106
111
  else:
107
- colour.write('[RED:WARNING]: Unable to rebase [BLUE:%s] branch as unable to determine its parent (could be any of %s)'
108
- % (branch, ', '.join(parents)), indent=4)
112
+ colour.write(f'[RED:WARNING]: Unable to rebase [BLUE:{branch}] branch as unable to determine its parent (could be any of {", ".join(parents)})',
113
+ indent=4)
109
114
  results['failed'].add(branch)
110
115
  return
111
116
 
112
117
  elif len(parents) == 1:
113
118
  parent = parents[0]
114
119
 
115
- else:
116
- colour.write(f'[RED:WARNING]: Unable to rebase [BLUE:{branch}] branch as unable to determine its parent (no obvious candidates))', indent=4)
117
- results['failed'].add(branch)
118
- return
119
-
120
120
  if args.dry_run:
121
121
  colour.write(f'[BOLD:Checking if] [BLUE:{branch}] [BOLD:needs to be rebased onto] [BLUE:{parent}]', indent=4)
122
122
 
@@ -296,7 +296,7 @@ def main():
296
296
 
297
297
  branches = git.branches() if args.all or args.everything else [current_branch]
298
298
 
299
- logging.info('Updating %s' % ', '.join(branches))
299
+ logging.info('Updating %s', ', '.join(branches))
300
300
 
301
301
  # Filter out branches that the user wants to ignore
302
302
 
@@ -224,6 +224,13 @@ def mg_init(args, config, console):
224
224
  By default, it scans the tree for git directories and adds or updates them
225
225
  in the configuration, using the current branch as the default branch. """
226
226
 
227
+ # Sanity checks
228
+
229
+ if args.modified or args.branched:
230
+ error('The "--modified" and "--branched" options cannot be used with the "init" subcommand')
231
+ elif not config:
232
+ error(f'Unable to location configuration file "{args.configuration_file}"')
233
+
227
234
  # TODO: Update should remove or warn about repos that are no longer present
228
235
 
229
236
  # Search for .git directories
@@ -442,12 +449,6 @@ def main():
442
449
  # Run an internal or external command-specific validation
443
450
 
444
451
  if args.internal_command:
445
- if args.command == 'init':
446
- if args.modified or args.branched:
447
- error('The "--modified" and "--branched" options cannot be used with the "init" subcommand')
448
- elif not config:
449
- error(f'Unable to location configuration file "{args.configuration_file}"')
450
-
451
452
  # Run the subcommand
452
453
 
453
454
  commands[args.command](args, config, console)
@@ -459,6 +460,8 @@ def main():
459
460
  config.write(configfile)
460
461
 
461
462
  else:
463
+ # Run the external command, no need to update the config as it can't change here
464
+
462
465
  run_git_command(args, config, console)
463
466
 
464
467
  ################################################################################
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: skilleter_thingy
3
- Version: 0.0.92
3
+ Version: 0.0.93
4
4
  Summary: A collection of useful utilities, mainly aimed at making Git more friendly
5
5
  Author-email: John Skilleter <john@skilleter.org.uk>
6
6
  Project-URL: Home, https://skilleter.org.uk
@@ -17,7 +17,7 @@ skilleter_thingy/git_hold.py,sha256=Zk6YUhr08znUOdpVJkJAt0rOtrCXnKE0NHoZzoaEEGo,
17
17
  skilleter_thingy/git_mr.py,sha256=g33FaRtJTbIQI0tfXv_a042YpGwtbg5fKw072aqjAdw,3086
18
18
  skilleter_thingy/git_parent.py,sha256=DLy38mo06R0YDyJWQjrP8pQS-qc7tvLYcn8unKqzEiQ,2774
19
19
  skilleter_thingy/git_review.py,sha256=e0yvDD9fIVhscnEP7hY26Od8VUbPEb7iMVMbY63Xjbc,52462
20
- skilleter_thingy/git_update.py,sha256=WQm-itTpdl1it75pmHbYKDEwXd0PaqXiu6xo_Kyc1aY,14181
20
+ skilleter_thingy/git_update.py,sha256=jJt66M_rVD-CJzozMgvFPp5DFjmt4yu2cU9fzlI5wFc,14184
21
21
  skilleter_thingy/git_wt.py,sha256=Xm4VBBXMI4GxNtH3QvF-QL9rtvo4RrlWSbNQDFpGZu8,2954
22
22
  skilleter_thingy/gitcmp_helper.py,sha256=wutDHpBPOX8ZsXbsC5ApHxMY5tOKgD3P0eyFVs_mSAI,11214
23
23
  skilleter_thingy/gitprompt.py,sha256=SzSMd0EGI7ftPko80Q2PipwbVA-qjU1jsmdpmTCM5GI,8912
@@ -25,7 +25,7 @@ skilleter_thingy/gl.py,sha256=9zbGpKxw6lX9RghLkdy-Q5sZlqtbB3uGFO04qTu1dH8,5954
25
25
  skilleter_thingy/gphotosync.py,sha256=Vb2zYTEFp26BYdkG810SRg9afyfDqvq4CLHTk-MFf60,22388
26
26
  skilleter_thingy/linecount.py,sha256=ehTN6VD76i4U5k6dXuYoiqSRHI67_BP-bziklNAJSKY,4309
27
27
  skilleter_thingy/moviemover.py,sha256=QzUAWQzQ1AWWREIhl-VMaLo2h8MMhOekBnao5jGWV1s,4470
28
- skilleter_thingy/multigit.py,sha256=Ge5VpyqhFFF8TEN--M0oIN2g7A_Amht_F1KVhF1VhiU,16670
28
+ skilleter_thingy/multigit.py,sha256=dpQDh_vZGqYHJk9PW2--UWLyM3pzC5Z8ihIWIuf6dkE,16722
29
29
  skilleter_thingy/photodupe.py,sha256=l0hbzSLb2Vk2ceteg-x9fHXCEE1uUuFo84hz5rsZUPA,4184
30
30
  skilleter_thingy/phototidier.py,sha256=BOu-cKHMivDlBqlRqv7sL3J6Ix1K2dxWWNcderldyZo,7818
31
31
  skilleter_thingy/py_audit.py,sha256=xJm5k5qyeA6ii8mODa4dOkmP8L1drv94UHuxR54RsIM,4384
@@ -61,9 +61,9 @@ skilleter_thingy/thingy/run.py,sha256=6SNKWF01fSxzB10GMU9ajraXYZqAL1w0PXkqjJdr1U
61
61
  skilleter_thingy/thingy/tfm_pane.py,sha256=oqy5zBzKwfbjbGqetbbhpKi4x5He7sl4qkmhUeqtdZc,19789
62
62
  skilleter_thingy/thingy/tidy.py,sha256=71DCyj0VJrj52RmjQyj1eOiQJIfy5EIPHuThOrS6ZTA,5876
63
63
  skilleter_thingy/thingy/venv_template.py,sha256=SsVNvSwojd8NnFeQaZPCRQYTNdwJRplpZpygbUEXRnY,1015
64
- skilleter_thingy-0.0.92.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
65
- skilleter_thingy-0.0.92.dist-info/METADATA,sha256=au3jgzKaEu5F-JiZre_gFLBzP8tP_CtSiphrEj7IE34,8894
66
- skilleter_thingy-0.0.92.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
67
- skilleter_thingy-0.0.92.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
68
- skilleter_thingy-0.0.92.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
69
- skilleter_thingy-0.0.92.dist-info/RECORD,,
64
+ skilleter_thingy-0.0.93.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
65
+ skilleter_thingy-0.0.93.dist-info/METADATA,sha256=oOCYioCKVkhTlaUrNCAo7X4s5743ejRUQpvj0EOegIk,8894
66
+ skilleter_thingy-0.0.93.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
67
+ skilleter_thingy-0.0.93.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
68
+ skilleter_thingy-0.0.93.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
69
+ skilleter_thingy-0.0.93.dist-info/RECORD,,