Mercurial > hg-git
comparison hggit/hg2git.py @ 1116:bd1a01f98154
cleanup: wrap to 80 chars
author | Sean Farley <sean@farley.io> |
---|---|
date | Mon, 27 Nov 2017 19:05:08 -0500 |
parents | 8ed6c0cae9b8 |
children | 6141895a53c9 |
comparison
equal
deleted
inserted
replaced
1115:8ed6c0cae9b8 | 1116:bd1a01f98154 |
---|---|
33 ... return False | 33 ... return False |
34 ... def warn(self, s): | 34 ... def warn(self, s): |
35 ... print s | 35 ... print s |
36 >>> u = fakeui() | 36 >>> u = fakeui() |
37 >>> audit_git_path(u, 'foo/git~100/wat') | 37 >>> audit_git_path(u, 'foo/git~100/wat') |
38 warning: path 'foo/git~100/wat' contains a potentially dangerous path component. | 38 ... # doctest: +ELLIPSIS |
39 warning: path 'foo/git~100/wat' contains a potentially dangerous ... | |
39 It may not be legal to check out in Git. | 40 It may not be legal to check out in Git. |
40 It may also be rejected by some git server configurations. | 41 It may also be rejected by some git server configurations. |
41 <BLANKLINE> | 42 <BLANKLINE> |
42 >>> audit_git_path(u, u'foo/.gi\u200ct'.encode('utf-8')) | 43 >>> audit_git_path(u, u'foo/.gi\u200ct'.encode('utf-8')) |
43 warning: path 'foo/.gi\xe2\x80\x8ct' contains a potentially dangerous path component. | 44 ... # doctest: +ELLIPSIS |
45 warning: path 'foo/.gi\xe2\x80\x8ct' contains a potentially dangerous ... | |
44 It may not be legal to check out in Git. | 46 It may not be legal to check out in Git. |
45 It may also be rejected by some git server configurations. | 47 It may also be rejected by some git server configurations. |
46 <BLANKLINE> | 48 <BLANKLINE> |
47 >>> audit_git_path(u, 'this/is/safe') | 49 >>> audit_git_path(u, 'this/is/safe') |
48 """ | 50 """ |