Show More
@@ -110,25 +110,25 b' def createlog(ui, directory=None, root="' | |||
|
110 | 110 | log = [] # list of logentry objects containing the CVS state |
|
111 | 111 | |
|
112 | 112 | # patterns to match in CVS (r)log output, by state of use |
|
113 | re_00 = re.compile('RCS file: (.+)$') | |
|
114 | re_01 = re.compile('cvs \\[r?log aborted\\]: (.+)$') | |
|
115 | re_02 = re.compile('cvs (r?log|server): (.+)\n$') | |
|
116 | re_03 = re.compile("(Cannot access.+CVSROOT)|" | |
|
117 | "(can't create temporary directory.+)$") | |
|
118 | re_10 = re.compile('Working file: (.+)$') | |
|
119 | re_20 = re.compile('symbolic names:') | |
|
120 | re_30 = re.compile('\t(.+): ([\\d.]+)$') | |
|
121 | re_31 = re.compile('----------------------------$') | |
|
122 | re_32 = re.compile('=======================================' | |
|
123 | '======================================$') | |
|
124 | re_50 = re.compile('revision ([\\d.]+)(\s+locked by:\s+.+;)?$') | |
|
125 | re_60 = re.compile(r'date:\s+(.+);\s+author:\s+(.+);\s+state:\s+(.+?);' | |
|
126 | r'(\s+lines:\s+(\+\d+)?\s+(-\d+)?;)?' | |
|
127 | r'(\s+commitid:\s+([^;]+);)?' | |
|
128 | r'(.*mergepoint:\s+([^;]+);)?') | |
|
129 | re_70 = re.compile('branches: (.+);$') | |
|
113 | re_00 = re.compile(b'RCS file: (.+)$') | |
|
114 | re_01 = re.compile(b'cvs \\[r?log aborted\\]: (.+)$') | |
|
115 | re_02 = re.compile(b'cvs (r?log|server): (.+)\n$') | |
|
116 | re_03 = re.compile(b"(Cannot access.+CVSROOT)|" | |
|
117 | b"(can't create temporary directory.+)$") | |
|
118 | re_10 = re.compile(b'Working file: (.+)$') | |
|
119 | re_20 = re.compile(b'symbolic names:') | |
|
120 | re_30 = re.compile(b'\t(.+): ([\\d.]+)$') | |
|
121 | re_31 = re.compile(b'----------------------------$') | |
|
122 | re_32 = re.compile(b'=======================================' | |
|
123 | b'======================================$') | |
|
124 | re_50 = re.compile(b'revision ([\\d.]+)(\s+locked by:\s+.+;)?$') | |
|
125 | re_60 = re.compile(br'date:\s+(.+);\s+author:\s+(.+);\s+state:\s+(.+?);' | |
|
126 | br'(\s+lines:\s+(\+\d+)?\s+(-\d+)?;)?' | |
|
127 | br'(\s+commitid:\s+([^;]+);)?' | |
|
128 | br'(.*mergepoint:\s+([^;]+);)?') | |
|
129 | re_70 = re.compile(b'branches: (.+);$') | |
|
130 | 130 | |
|
131 | file_added_re = re.compile(r'file [^/]+ was (initially )?added on branch') | |
|
131 | file_added_re = re.compile(br'file [^/]+ was (initially )?added on branch') | |
|
132 | 132 | |
|
133 | 133 | prefix = '' # leading path to strip of what we get from CVS |
|
134 | 134 | |
@@ -729,12 +729,12 b' def createchangeset(ui, log, fuzz=60, me' | |||
|
729 | 729 | # {{mergefrombranch BRANCHNAME}} by setting two parents. |
|
730 | 730 | |
|
731 | 731 | if mergeto is None: |
|
732 | mergeto = r'{{mergetobranch ([-\w]+)}}' | |
|
732 | mergeto = br'{{mergetobranch ([-\w]+)}}' | |
|
733 | 733 | if mergeto: |
|
734 | 734 | mergeto = re.compile(mergeto) |
|
735 | 735 | |
|
736 | 736 | if mergefrom is None: |
|
737 | mergefrom = r'{{mergefrombranch ([-\w]+)}}' | |
|
737 | mergefrom = br'{{mergefrombranch ([-\w]+)}}' | |
|
738 | 738 | if mergefrom: |
|
739 | 739 | mergefrom = re.compile(mergefrom) |
|
740 | 740 |
General Comments 0
You need to be logged in to leave comments.
Login now