Mercurial > public > mercurial-scm > hg-stable
comparison hgext/githelp.py @ 43978:ca5bd34c597b
githelp: drop unused variable assignments
Caught by PyCharm.
Differential Revision: https://phab.mercurial-scm.org/D7741
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 13:29:45 -0500 |
parents | 29adf0a087a1 |
children | 94f227baa76f |
comparison
equal
deleted
inserted
replaced
43977:7a2c49a3cbae | 43978:ca5bd34c597b |
---|---|
207 ui.status((bytes(cmd)), b"\n") | 207 ui.status((bytes(cmd)), b"\n") |
208 | 208 |
209 | 209 |
210 def am(ui, repo, *args, **kwargs): | 210 def am(ui, repo, *args, **kwargs): |
211 cmdoptions = [] | 211 cmdoptions = [] |
212 args, opts = parseoptions(ui, cmdoptions, args) | 212 parseoptions(ui, cmdoptions, args) |
213 cmd = Command(b'import') | 213 cmd = Command(b'import') |
214 ui.status(bytes(cmd), b"\n") | 214 ui.status(bytes(cmd), b"\n") |
215 | 215 |
216 | 216 |
217 def apply(ui, repo, *args, **kwargs): | 217 def apply(ui, repo, *args, **kwargs): |
1137 return gitsvncommands[svncmd](ui, repo, *args, **kwargs) | 1137 return gitsvncommands[svncmd](ui, repo, *args, **kwargs) |
1138 | 1138 |
1139 | 1139 |
1140 def svndcommit(ui, repo, *args, **kwargs): | 1140 def svndcommit(ui, repo, *args, **kwargs): |
1141 cmdoptions = [] | 1141 cmdoptions = [] |
1142 args, opts = parseoptions(ui, cmdoptions, args) | 1142 parseoptions(ui, cmdoptions, args) |
1143 | 1143 |
1144 cmd = Command(b'push') | 1144 cmd = Command(b'push') |
1145 | 1145 |
1146 ui.status((bytes(cmd)), b"\n") | 1146 ui.status((bytes(cmd)), b"\n") |
1147 | 1147 |
1148 | 1148 |
1149 def svnfetch(ui, repo, *args, **kwargs): | 1149 def svnfetch(ui, repo, *args, **kwargs): |
1150 cmdoptions = [] | 1150 cmdoptions = [] |
1151 args, opts = parseoptions(ui, cmdoptions, args) | 1151 parseoptions(ui, cmdoptions, args) |
1152 | 1152 |
1153 cmd = Command(b'pull') | 1153 cmd = Command(b'pull') |
1154 cmd.append(b'default-push') | 1154 cmd.append(b'default-push') |
1155 | 1155 |
1156 ui.status((bytes(cmd)), b"\n") | 1156 ui.status((bytes(cmd)), b"\n") |
1171 | 1171 |
1172 def svnrebase(ui, repo, *args, **kwargs): | 1172 def svnrebase(ui, repo, *args, **kwargs): |
1173 cmdoptions = [ | 1173 cmdoptions = [ |
1174 (b'l', b'local', None, b''), | 1174 (b'l', b'local', None, b''), |
1175 ] | 1175 ] |
1176 args, opts = parseoptions(ui, cmdoptions, args) | 1176 parseoptions(ui, cmdoptions, args) |
1177 | 1177 |
1178 pullcmd = Command(b'pull') | 1178 pullcmd = Command(b'pull') |
1179 pullcmd.append(b'default-push') | 1179 pullcmd.append(b'default-push') |
1180 rebasecmd = Command(b'rebase') | 1180 rebasecmd = Command(b'rebase') |
1181 rebasecmd.append(b'tip') | 1181 rebasecmd.append(b'tip') |