~racb/git-ubuntu:refactorings-for-queue

Last commit made on 2017-02-24
Get this branch:
git clone -b refactorings-for-queue https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
refactorings-for-queue
Repository:
lp:~racb/git-ubuntu

Recent commits

f1fc748... by Robie Basak

Add msg option to USDGitRepository:annotated_tag

This allows the caller to specify the annotation, instead of assuming a
blank one.

44f1c08... by Robie Basak

Add listall_references_matching_regexp

Add listall_references_matching_regexp to USDGitRepository.

This is a thin wrapper around pygit2.

b209081... by Robie Basak

Add lookup_reference wrapper to USDGitRepository

7aaefd5... by Robie Basak

Add USDGitRepository:get_short_hash()

This method returns an abbreviated form of a commit hash that is still
unambiguous. For use with the upcoming queue handling feature.

Note that the hash may still become ambiguous in the future.

b4e9447... by Robie Basak

Factor out commit_tree_hash

Move the logic to commit from a tree hash from the main importer into
its own function in the USDGitRepository class.

This allows other things (like the upcoming queue importer) to use the
same functionality.

0e15019... by Robie Basak

importer.dsc_to_tree_hash: use alternative index

If we use the main index, then it gets disturbed and ends up looking
like the thing we just imported, instead of what it did previously.

Instead we can set GIT_INDEX_FILE to use an entirely alternative one
that starts off empty, and throw it away when we're done.

06b8e9a... by Robie Basak

Factor out usd/importer.py:dsc_to_tree_hash

Pull out the code that handles importing a dsc into an (unapplied) tree
object into its own function. Then the queue importer will be able to
call it, too.

d44f9b3... by Robie Basak

importer: use explicit extraction directory

4843980... by Robie Basak

USDGitRepository.git_run: accept env overrides

13eccc0... by Robie Basak

Follow symlinks reading debian/changelog

LP: #1661092