merging & hgignore
watlab at twinmail.de
Thu Jun 30 13:25:50 CDT 2011
Tom Anderson wrote:
> find $REPO -path $REPO/.hg -prune -o -regextype posix-extended -regex
> "$REPO/($(echo -n $(sed 's#^\^##; t $; s#^#(.*/)?#; :$ s#/$#$#;
> s#.*#(&)#' $REPO/.hgignore) | tr ' ' '|')).*" -print
> You can then pipe that to xargs hg rm. What could be easier?
Dont know. Maybe not having to remember a 50 character sed command every
time you merge a branch? I think, I'll wait till tomorrow. ;)
In the case I'm on now, it's not a real problem anyway since all these files
share a common suffix.
Thanks for your help, everybody.
View this message in context: http://mercurial.808500.n3.nabble.com/merging-hgignore-tp3125829p3126991.html
Sent from the General mailing list archive at Nabble.com.
More information about the Mercurial