/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/revspec.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-02 06:03:07 UTC
  • mfrom: (7309.1.1 merge-3.0)
  • Revision ID: breezy.the.bot@gmail.com-20190602060307-k1s62fxuqo4gtgkg
Merge the 3.0 branch.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.0/+merge/368233

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    def _match_on(self, branch, revs):
113
113
        loc = self.spec.find(':')
114
114
        git_sha1 = self.spec[loc + 1:].encode("utf-8")
115
 
        if len(git_sha1) > 40 or not valid_git_sha1(git_sha1):
 
115
        if (len(git_sha1) > 40 or len(git_sha1) < 4 or
 
116
                not valid_git_sha1(git_sha1)):
116
117
            raise InvalidRevisionSpec(self.user_spec, branch)
117
118
        from . import (
118
119
            lazy_check_versions,