Bryan O'Sullivan avatar Bryan O'Sullivan committed 627effe

More attempts to tidy up regexps for ignoring.

Comments (0)

Files changed (5)

en/examples/backout

 cat myfile
 
 #$ name: simple.log
+#$ ignore: \s+200[78]-.*
 
 hg log --style compact
 

en/examples/hook.simple

 #!/bin/bash
 
 #$ name: init
-#$ ignore: [0-9a-f]{40}
 
 hg init hook-test
 cd hook-test

en/examples/mq.tutorial

 ls .hg/patches
 
 #$ name: qrefresh
-#$ ignore: [0-9a-f]{12}
+#$ ignore: \s+200[78]-.*
 
 echo 'line 2' >> file1
 hg diff

en/examples/run-example

 
         ignore = [
             r'\d+:[0-9a-f]{12}', # changeset number:hash
+            r'[0-9a-f]{40}', # long changeset hash
+            r'[0-9a-f]{12}', # short changeset hash
             r'^(?:---|\+\+\+) .*', # diff header with dates
             r'^date:.*', # date
-            r'^diff -r.*', # "diff -r" is followed by hash
+            #r'^diff -r.*', # "diff -r" is followed by hash
             r'^# Date \d+ \d+', # hg patch header
-            r'^# Node ID [0-9a-f]{40}', # hg patch header
-            r'^# Parent  [0-9a-f]{40}', # hg patch header
             ]
 
         err = False

en/examples/template.svnstyle

 cat svn.style
 
 #$ name: result
+#$ ignore: \+0000 \(.*
 
 hg log -r1 --style svn.style
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.