skilleter-thingy 0.0.26__py3-none-any.whl → 0.0.28__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.

skilleter_thingy/git.py CHANGED
@@ -531,8 +531,10 @@ def commit_info(commit_1=None, commit_2=None, paths=None, diff_stats=False):
531
531
  lines_del = 0 if p.group(2) == '-' else int(p.group(2))
532
532
 
533
533
  if ' => ' in p.group(3):
534
+ filepath = p.group(3).split('{')[0]
534
535
  filename = p.group(3).split(' => ')[1]
535
536
  filename = filename.replace('}', '')
537
+ filename = os.path.join(filepath, filename)
536
538
  else:
537
539
  filename = p.group(3)
538
540
 
@@ -581,6 +583,7 @@ def commit_info(commit_1=None, commit_2=None, paths=None, diff_stats=False):
581
583
 
582
584
  if diff_stats:
583
585
  # Run git diff to get stats, and add them to the info
586
+ # TODO: Need to extract old name of renamed files
584
587
 
585
588
  results = git(['diff', '--numstat'] + params)
586
589
 
@@ -27,9 +27,9 @@
27
27
  * Show: all / wildcard match / wildcard non-match
28
28
  * Show: all / reviewed / unreviewed files
29
29
  * Tag files for group operations (reset, delete, add, commit)
30
+ * Handle renamed files properly - need to show old and new names, but need to return this info from git.commit_info()
30
31
 
31
32
  BUGS:
32
- * Fails to handle renamed files -thinks it a file called 'oldname => newname'
33
33
  * If console window is too small, popups aren't displayed - should handle this better - scrollable popup?
34
34
  * Switching between hiding reviewed files and not does not maintain cursor position
35
35
  * In hide mode, ins should not move down
@@ -1273,6 +1273,7 @@ def parse_command_line():
1273
1273
  parser.add_argument('-b', '--branch', type=str, help='Compare the specified commit to branch point on specified branch')
1274
1274
  parser.add_argument('-C', '--change', action='store_true', help='Compare the current commit with its parent')
1275
1275
  parser.add_argument('-d', '--debug', action='store_true', help='Start a debug session over Telnet using pudb')
1276
+ parser.add_argument('--dir', action='store', help='Work in the specified directory')
1276
1277
  parser.add_argument('--difftool', type=str, default=None, help='Override the default git diff tool')
1277
1278
 
1278
1279
  parser.add_argument('commits', nargs='*', help='Commit(s) or paths to compare')
@@ -1284,6 +1285,11 @@ def parse_command_line():
1284
1285
  if args.debug:
1285
1286
  from pudb.remote import set_trace
1286
1287
  set_trace()
1288
+
1289
+ # Move to a new directory, if required
1290
+
1291
+ if args.dir:
1292
+ os.chdir(args.dir)
1287
1293
 
1288
1294
  # Make sure that we're actually in a git working tree
1289
1295
 
@@ -29,8 +29,8 @@ from skilleter_thingy import files
29
29
  TF_OBJECTS_CHANGED_END = 'Terraform detected the following changes made outside of Terraform since the last "terraform apply":'
30
30
  TF_IGNORE_MSG = 'Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes.'
31
31
 
32
- TF_REFRESHING_AND_READING = re.compile(r'.*: (?:Refreshing state\.\.\.|Reading\.\.\.|Read complete after ).*')
33
- TF_FINDING_AND_INSTALLING = re.compile(r'- (?:Finding .*[.]{3}|Installing .*[.]{3}|Installed .*)')
32
+ TF_REFRESHING_AND_READING = re.compile(r'.*: (?:Refreshing state\.\.\.|Reading\.\.\.|Read complete after |Preparing import\.\.\.).*')
33
+ TF_FINDING_AND_INSTALLING = re.compile(r'- (?:Finding .*[.]{3}|Installing .*[.]{3}|Installed .*)')
34
34
 
35
35
  TF_HAS_CHANGED = re.compile(r' # .* has changed')
36
36
  TF_READ_DURING_APPLY = re.compile(r' +# [-a-z_.0-9\[\]]+ will be read during apply')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: skilleter_thingy
3
- Version: 0.0.26
3
+ Version: 0.0.28
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
@@ -14,7 +14,7 @@ skilleter_thingy/ffind.py,sha256=jiTPjsIvFaQHdiC9xosQGUs-8PDZ9wks0aX9yDv8Sy8,193
14
14
  skilleter_thingy/files.py,sha256=jGFITALK6OPqxJWw3q1vY7mvcxD_JtwMYUMNYnAWqhw,4261
15
15
  skilleter_thingy/ggit.py,sha256=LpXtis78r46MpSizbFh_9YWsrL6tn94tRQYoXJi0M-4,2493
16
16
  skilleter_thingy/ggrep.py,sha256=dGJv8gHC7bGgFBSrXsPYbwy_1Y40Rz7-Sw7R99G01NE,5876
17
- skilleter_thingy/git.py,sha256=MxD9y0pPcmZ7nAEE32OFxG16xqYbHacvASm5SksAj9Y,37887
17
+ skilleter_thingy/git.py,sha256=cVUeQvoYD-2-zLUI-cNtODCmzdJAtVVs8cLNPPIlvvU,38049
18
18
  skilleter_thingy/git2.py,sha256=Ni1eigoOYAeps2YbTaQWYCpL6WjZMKSv4CqiiFi0nJg,35764
19
19
  skilleter_thingy/git_br.py,sha256=cLtQJPqpPmBxlheKSHTl-DlzRGb1m8QZUfupWvaof68,5812
20
20
  skilleter_thingy/git_ca.py,sha256=Lh4BgZR_m6wRlbWdw84qMrW-y6vqMWkbDAR08uoQVGE,4981
@@ -24,7 +24,7 @@ skilleter_thingy/git_common.py,sha256=sjCRCNfyDhLPtxajjiq1l0SCEqB7d1L2uAgnuxLqc1
24
24
  skilleter_thingy/git_hold.py,sha256=i-mbY6wBZ-lRx6rS2kGyWlTCWqK6suhKape7Dnc4OAo,4630
25
25
  skilleter_thingy/git_mr.py,sha256=ik3uVecNos_73aYANgnaHutPdnW3PlGmWiAw9EJ9IGk,3100
26
26
  skilleter_thingy/git_parent.py,sha256=1VHbh_iH4tnw6vpafqHWEeZwHZVL_sZOIVZMojKTwlk,2696
27
- skilleter_thingy/git_review.py,sha256=4pNf8DSVu3V2l9CDo97OIsEHaBIGxfINREbAYU9thg4,51566
27
+ skilleter_thingy/git_review.py,sha256=hYbKls2ut_Cw40g4fKsQkSyIPs9kl-92W4Wi1kf6a_w,51796
28
28
  skilleter_thingy/git_update.py,sha256=comv8CR1j9W8yuCIeoksAKxH8fPTiROkIXVrHdpXWl4,13985
29
29
  skilleter_thingy/git_wt.py,sha256=VAcOgEAqVUUdmmkZ-zxaHi0Xp6LAt9NvZAZzUoJM3AU,3143
30
30
  skilleter_thingy/gitcmp_helper.py,sha256=rFCZiivZfYmd1_-0_3YwmYSfGDLWu6e6rK0I9hFXCUY,11279
@@ -41,7 +41,7 @@ skilleter_thingy/phototidier.py,sha256=1uj1XbUemJOalNC3PwTG2-_yUQp4WMAcmwRr7QXPn
41
41
  skilleter_thingy/popup.py,sha256=jW-nbpdeswqEMTli7OmBv1J8XQsvFoMI0J33O6dOeu8,2529
42
42
  skilleter_thingy/process.py,sha256=RmXj2RrzwqP_mugeVejtjgF_T3PD7M10XsWuAnc99t0,3565
43
43
  skilleter_thingy/py_audit.py,sha256=ZyKN8O0fM4xnwVspk1qH_Dnv5ujM7lJfKxC87xWilr0,4395
44
- skilleter_thingy/readable.py,sha256=4tUyAWUZpryPYOqaBa3CaiTfuwg4A8zsOl9qoPAQqvE,9465
44
+ skilleter_thingy/readable.py,sha256=fk0p9E50I6TeC8fZBtBNfoefsOmYQAl5Sn2tIPwtpq8,9487
45
45
  skilleter_thingy/remdir.py,sha256=zp5Nr0IMGXQ-b5iT48O5arqWoSjW65Xnr-SpKuav1Ac,4620
46
46
  skilleter_thingy/rmdupe.py,sha256=tcX3w8XvliGwBMdSt9BUu07kuDtQEc0IiU8sCxmgzHA,17117
47
47
  skilleter_thingy/rpylint.py,sha256=na39x0yNXDwDkG9yP48BoM5FeTut-OS4AVsYixE0YZU,2639
@@ -57,9 +57,9 @@ skilleter_thingy/trimpath.py,sha256=SAfOB75_dTldQHjam4kQy1J42209NYPYi8vVAaNn1e8,
57
57
  skilleter_thingy/window_rename.py,sha256=dCBgZqih_3YKHt35hsOAhARFp3QxOi8w8huC63sqJK8,3128
58
58
  skilleter_thingy/xchmod.py,sha256=F9_lxKuLqVlHHr3oBI3dkMoFOuwRzYDlpQMTmDcjpBI,4590
59
59
  skilleter_thingy/yamlcheck.py,sha256=FXylZ5NtHirDlPVhVEUZUZkTugVR-g51BbjaN06akAc,2868
60
- skilleter_thingy-0.0.26.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
61
- skilleter_thingy-0.0.26.dist-info/METADATA,sha256=tn3FjCTFSjHBom9bV7v__U8UFJ9QdVDCwtO9B7vhvy8,5210
62
- skilleter_thingy-0.0.26.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
63
- skilleter_thingy-0.0.26.dist-info/entry_points.txt,sha256=jf7hVfH0dojLxk0D4TjIazKoqdToditCGdCfyhIotME,1971
64
- skilleter_thingy-0.0.26.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
65
- skilleter_thingy-0.0.26.dist-info/RECORD,,
60
+ skilleter_thingy-0.0.28.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
61
+ skilleter_thingy-0.0.28.dist-info/METADATA,sha256=POd3McT57J8obbLafSetdtI00liUyEOTjOSdAUwKRe0,5210
62
+ skilleter_thingy-0.0.28.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
63
+ skilleter_thingy-0.0.28.dist-info/entry_points.txt,sha256=jf7hVfH0dojLxk0D4TjIazKoqdToditCGdCfyhIotME,1971
64
+ skilleter_thingy-0.0.28.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
65
+ skilleter_thingy-0.0.28.dist-info/RECORD,,