@@ -12,9 +12,47 @@ has ghstack information in it, or using string search.
12
12
None of this would be useful without a local cache: getting all the needed information
13
13
from github takes one to two seconds per pull request the first time.
14
14
15
- ## Examples
15
+ ## A quick tour
16
16
17
- ### List all your pull requests
17
+ $ pullman
18
+ #131354: [dynamo] Fix constant propagation in builtins and UserClasses
19
+ #145150: [inductor] Simplify _inductor/utils.py slightly
20
+ #145636: Simplify functional composition in _aot_autograd/dispatch_and_compile_graph.py
21
+ #146845: Fix non-bitwise type annotations for Tensor operators (see #145838)
22
+ #148959: Move token linter code into tools/linter/adaptors/_linter/
23
+ #149958: [inductor] Add some typing to _inductor/ir.py
24
+ #149959: [inductor] Add more typing to _inductor/ir.py
25
+ #150767: [inductor] Clean typing in codegen/common.py and codecache.py
26
+
27
+ $ git log -1 --oneline $(pm ref slightly)
28
+ c2f0f86cff2 (upstream/gh/rec/124/orig) [inductor] Simplify _inductor/utils.py slightly
29
+
30
+ $ pullman url -o functional # Also opens #145636 in the browser
31
+ https://github.com/pytorch/pytorch/pull/145636
32
+
33
+ $ pullman errors constant
34
+ Writing unit-test-failures.sh for https://github.com/pytorch/pytorch/pull/131354
35
+ Loading jobs for 12893911506, segment=pull...
36
+ run_id='12893911506', len(jobs)=86, len(failed)=44
37
+ Loading jobs for 12893912723, segment=inductor...
38
+ run_id='12893912723', len(jobs)=38, len(failed)=27
39
+
40
+ # Wrote an executable shell file with commands to run the failed unit tests,
41
+ # or at least the ones the program can figure out...
42
+
43
+ $ pullman checkout --fetch --rewrite -r token
44
+ # Throws away the pullman cache, then calls
45
+ #
46
+ # git fetch upstream
47
+ # ghstack checkout https://github.com/pytorch/pytorch/pull/148959
48
+ # git rebase upstream/viable/strict
49
+ # git submodule update --init --recursive
50
+
51
+ ## Commands
52
+
53
+ You can use any prefix of any of these commands, like ` pullman l ` or ` pullman ch ` .
54
+
55
+ ### ` pullman list ` : list all your pull requests
18
56
19
57
$ pullman
20
58
$ pullman l
@@ -25,20 +63,23 @@ from github takes one to two seconds per pull request the first time.
25
63
#144622: [inductor] Enable docstring_linter on _inductor
26
64
...
27
65
28
- ### List requests matching a string
29
-
30
66
$ pullman list Add tests
31
67
$ pullman Add tests
68
+
32
69
#144621: [inductor] Add tests for new docstring_linter features (fix #142496)
33
70
34
- ### Print URLs of pull request , optionally open them in a browser
71
+ ### ` pullman url|commit_url|hud_url|ref_url ` : print a URL , optionally open in a browser
35
72
36
73
$ pullman url # Looks at ghstack information in HEAD
37
74
https://github.com/pytorch/pytorch/pull/148358
38
75
39
76
$ pullman url other-branch # Looks at ghstack information in some other branch
40
77
https://github.com/pytorch/pytorch/pull/148358
41
78
79
+ # Use :/ to force a string search
80
+ $ pullman url :/other-branch
81
+ ERROR: Can't find any commits matching ':/other-branch'
82
+
42
83
$ pullman url linter # searches for pull requests matching "linter"
43
84
https://github.com/pytorch/pytorch/pull/144621
44
85
@@ -48,17 +89,23 @@ from github takes one to two seconds per pull request the first time.
48
89
$ pullman hud_url
49
90
https://hudtorch.org/pr/148358
50
91
51
- # Choose from `url`, `commit_url`, `hud_url`, `ref_url`
92
+ ### ` pullman checkout ` : run ` ghstack checkout ` on a matching pull request
52
93
53
- ### Print ghstack branch ref
94
+ $ pullman checkout
95
+ # Calls `ghstack checkout` on the pull request that matches HEAD
96
+
97
+ $ pullman ref :/linter
98
+ upstream/gh/rec/137/orig
99
+
100
+ ### ` pullman ref ` : print ghstack branch git ref
54
101
55
102
$ pullman ref
56
103
upstream/gh/rec/136/orig
57
104
58
- $ pullman ref :/ linter
105
+ $ pullman ref linter
59
106
upstream/gh/rec/137/orig
60
107
61
- ### Download errors from a pull request
108
+ ### ` pullman errors ` : download errors from a pull request
62
109
63
110
$ pullman errors
64
111
$ pull
0 commit comments