darcs

Patch 414 fix a sed regexp in hidden_conflicts2.sh

Title fix a sed regexp in hidden_conflicts2.sh
Superseder Nosy List gh
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-10-09.10:27:02 by gh, last changed 2011-05-10.21:36:29 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
fix-a-sed-regexp-in-hidden_conflicts2_sh.dpatch gh, 2010-10-09.10:27:02 text/x-darcs-patch
unnamed gh, 2010-10-09.10:27:02
See mailing list archives for discussion on individual patches.
Messages
msg12667 (view) Author: gh Date: 2010-10-09.10:27:02
This fixes a silent bug in a tests shellscript, where a sed would not
erase the conflict markers. I am using Ubuntu Linux 10.10 with GNU
sed version 4.2.1. I have grepped the other tests to look for similar
regexpes, but no other occurence of grep or sed do this kind of treatment
on conflict markers.

Note also that Ganesh's recent patch to add the previous text in conflict
marking will make a line of ===== remain after the current version of this
patch, so the alternative = will have to be added to the sed regexp.
1 patch for repository http://darcs.net:

Sat Oct  9 12:16:52 CEST 2010  Guillaume Hoffmann <guillaumh@gmail.com>
  * fix a sed regexp in hidden_conflicts2.sh
Attachments
msg12668 (view) Author: gh Date: 2010-10-09.11:36:16
Another remark: hidden_conflicts2.sh passes also with --hashed
repositories (darcs1 patch type). So maybe this test is just useless
and should be removed.
hidden_conflicts.sh does fail with --hashed repos, on the other hand.

Guillaume

2010/10/9 gh <bugs@darcs.net>:
>
> New submission from gh <guillaumh@gmail.com>:
>
> This fixes a silent bug in a tests shellscript, where a sed would not
> erase the conflict markers. I am using Ubuntu Linux 10.10 with GNU
> sed version 4.2.1. I have grepped the other tests to look for similar
> regexpes, but no other occurence of grep or sed do this kind of treatment
> on conflict markers.
>
> Note also that Ganesh's recent patch to add the previous text in conflict
> marking will make a line of ===== remain after the current version of this
> patch, so the alternative = will have to be added to the sed regexp.
> 1 patch for repository http://darcs.net:
>
> Sat Oct  9 12:16:52 CEST 2010  Guillaume Hoffmann <guillaumh@gmail.com>
>  * fix a sed regexp in hidden_conflicts2.sh
>
> ----------
> files: fix-a-sed-regexp-in-hidden_conflicts2_sh.dpatch, unnamed
> messages: 12667
> nosy: gh
> status: needs-screening
> title: fix a sed regexp in hidden_conflicts2.sh
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/patch414>
> __________________________________
msg12681 (view) Author: kili Date: 2010-10-09.21:52:12
On Sat, Oct 09, 2010 at 10:27:02AM +0000, gh wrote:
> Sat Oct  9 12:16:52 CEST 2010  Guillaume Hoffmann <guillaumh@gmail.com>
>   * fix a sed regexp in hidden_conflicts2.sh

Wouldn't it be better to just use three `-e ...' args, i.e. 

	sed -e '/pattern1/d' -e '/pattern2/d' -e '/pattern3/d'

instead of

	sed -e '/pattern1\|pattern2\|pattern3/d'

It's more blurb, but you don't have to care wether sed uses basic
or extende regexps by default.

Ciao,
	Kili
msg12741 (view) Author: darcswatch Date: 2010-10-17.10:29:29
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/screened.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_screened.html#bundle-599045917309b7e0d139260ef04b646caa5d53cd
msg12831 (view) Author: darcswatch Date: 2010-10-25.18:29:15
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-599045917309b7e0d139260ef04b646caa5d53cd
msg14356 (view) Author: darcswatch Date: 2011-05-10.21:36:29
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-599045917309b7e0d139260ef04b646caa5d53cd
History
Date User Action Args
2010-10-09 10:27:02ghcreate
2010-10-09 10:27:55darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-599045917309b7e0d139260ef04b646caa5d53cd
2010-10-09 11:36:16ghsetmessages: + msg12668
2010-10-09 21:52:12kilisetmessages: + msg12681
2010-10-17 10:29:29darcswatchsetstatus: needs-screening -> needs-review
messages: + msg12741
2010-10-25 18:29:15darcswatchsetstatus: needs-review -> accepted
messages: + msg12831
2011-05-10 21:36:29darcswatchsetmessages: + msg14356