~nacc/git-ubuntu:lp1708203-lint-do-not-clobber-working-tree

Last commit made on 2017-09-18
Get this branch:
git clone -b lp1708203-lint-do-not-clobber-working-tree https://git.launchpad.net/~nacc/git-ubuntu
Only Nish Aravamudan can upload to this branch. If you are Nish Aravamudan please log in for upload directions.

Branch merges

Branch information

Name:
lp1708203-lint-do-not-clobber-working-tree
Repository:
lp:~nacc/git-ubuntu

Recent commits

6455fd2... by Nish Aravamudan

git_repository: use a contextmanager for worktrees

This will be squasehd up

3ee33cd... by Nish Aravamudan

lint: do not clobber working tree

Rather than checking out to specific points and attempting to run
commands there, add a helper function in the repository that creates a
worktree to run a command in, and then runs it there. The worktree is
pruned upon return, regardless of the success or failure of the command.

LP: #1708203

2f61c42... by Nish Aravamudan

add tor to imported package list

Requested by Simon Deziel.

e5d3ac2... by Nish Aravamudan

build: fix syntax error when build fails

390621e... by Nish Aravamudan

lint: commitish_obj is only used to obtain commitish_id, drop it

e21ade1... by Nish Aravamudan

lint: use peel(Commit) rather than resolve().peel()

1acc00b... by Nish Aravamudan

lint: do not loop to find head branch name

Use the same pattern as added elsewhere.

5199842... by Nish Aravamudan

lint: properly handle default (no argument) cli case

Do not set a default value for commitish, as that leads to different behavior
(emits messages about detached HEAD) in main. Instead, let the default be None,
which results in us using HEAD in main, correctly.

be70e93... by Nish Aravamudan

lint: return to original head state if possible

Save off the branch we were at. This is still not the best solution,
but does leave us in the right place. The "correct" solution is to
clone the repo elsewhere and not modify the local repository at all.

LP: #1710035

a066105... by Nish Aravamudan

git ubuntu review: add new subcommand

Given a MP URL, this attempts to provide a local directory to use for
reviewing the MP (and allows one to auto-approve with lint results).

LP: #1702960