/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: Jelmer Vernooij
  • Date: 2019-02-15 18:57:38 UTC
  • mto: (7290.1.22 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190215185738-x7pqhajjosehj0oo
More tests.

Show diffs side-by-side

added added

removed removed

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