Caught by PyCharm.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGca5bd34c597b: githelp: drop unused variable assignments
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| hg-reviewers |
Caught by PyCharm.
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | hgext/githelp.py (8 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| cfed6c789ae7 | 95459f54ffba | Matt Harbison | Dec 27 2019, 1:29 PM |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 | ||
| Closed | mharbison72 |
| ) | ) | ||||
| ) | ) | ||||
| ui.status((bytes(cmd)), b"\n") | ui.status((bytes(cmd)), b"\n") | ||||
| def am(ui, repo, *args, **kwargs): | def am(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [] | cmdoptions = [] | ||||
| args, opts = parseoptions(ui, cmdoptions, args) | parseoptions(ui, cmdoptions, args) | ||||
| cmd = Command(b'import') | cmd = Command(b'import') | ||||
| ui.status(bytes(cmd), b"\n") | ui.status(bytes(cmd), b"\n") | ||||
| def apply(ui, repo, *args, **kwargs): | def apply(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [ | cmdoptions = [ | ||||
| (b'p', b'p', int, b''), | (b'p', b'p', int, b''), | ||||
| (b'', b'directory', b'', b''), | (b'', b'directory', b'', b''), | ||||
| raise error.Abort(_(b'unknown git svn command "%s"') % svncmd) | raise error.Abort(_(b'unknown git svn command "%s"') % svncmd) | ||||
| args = args[1:] | args = args[1:] | ||||
| return gitsvncommands[svncmd](ui, repo, *args, **kwargs) | return gitsvncommands[svncmd](ui, repo, *args, **kwargs) | ||||
| def svndcommit(ui, repo, *args, **kwargs): | def svndcommit(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [] | cmdoptions = [] | ||||
| args, opts = parseoptions(ui, cmdoptions, args) | parseoptions(ui, cmdoptions, args) | ||||
| cmd = Command(b'push') | cmd = Command(b'push') | ||||
| ui.status((bytes(cmd)), b"\n") | ui.status((bytes(cmd)), b"\n") | ||||
| def svnfetch(ui, repo, *args, **kwargs): | def svnfetch(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [] | cmdoptions = [] | ||||
| args, opts = parseoptions(ui, cmdoptions, args) | parseoptions(ui, cmdoptions, args) | ||||
| cmd = Command(b'pull') | cmd = Command(b'pull') | ||||
| cmd.append(b'default-push') | cmd.append(b'default-push') | ||||
| ui.status((bytes(cmd)), b"\n") | ui.status((bytes(cmd)), b"\n") | ||||
| def svnfindrev(ui, repo, *args, **kwargs): | def svnfindrev(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [] | cmdoptions = [] | ||||
| args, opts = parseoptions(ui, cmdoptions, args) | args, opts = parseoptions(ui, cmdoptions, args) | ||||
| if not args: | if not args: | ||||
| raise error.Abort(_(b'missing find-rev argument')) | raise error.Abort(_(b'missing find-rev argument')) | ||||
| cmd = Command(b'log') | cmd = Command(b'log') | ||||
| cmd[b'-r'] = args[0] | cmd[b'-r'] = args[0] | ||||
| ui.status((bytes(cmd)), b"\n") | ui.status((bytes(cmd)), b"\n") | ||||
| def svnrebase(ui, repo, *args, **kwargs): | def svnrebase(ui, repo, *args, **kwargs): | ||||
| cmdoptions = [ | cmdoptions = [ | ||||
| (b'l', b'local', None, b''), | (b'l', b'local', None, b''), | ||||
| ] | ] | ||||
| args, opts = parseoptions(ui, cmdoptions, args) | parseoptions(ui, cmdoptions, args) | ||||
| pullcmd = Command(b'pull') | pullcmd = Command(b'pull') | ||||
| pullcmd.append(b'default-push') | pullcmd.append(b'default-push') | ||||
| rebasecmd = Command(b'rebase') | rebasecmd = Command(b'rebase') | ||||
| rebasecmd.append(b'tip') | rebasecmd.append(b'tip') | ||||
| cmd = pullcmd & rebasecmd | cmd = pullcmd & rebasecmd | ||||