[yt-dev] Cleaning up my bookmarks

Britton Smith brittonsmith at gmail.com
Thu Mar 13 07:15:51 PDT 2014


Hi Matt,

For those of us who have pulled a number of bookmarks from your fork, will
just doing another pull from your fork remove those bookmarks from my repo?

Britton


On Thu, Mar 13, 2014 at 2:10 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi all,
>
> Now that all the main differences and changes and whatnot are merged
> in, I've decided to clean up my bookmarks.  In case anybody else wants
> to do the same, here's my procedure.
>
> First, I collected all the names of non-head bookmarks:
>
> hg log -r "bookmark() and not head()" --template "{bookmarks}\n" > b1
>
> I also backed up the full log output, just in case:
>
> hg log -r "bookmark() and not head()" > b1
>
> I edited this because there were a few I didn't want to delete.  Then,
> I deleted the rest:
>
> for bm in `cat b1`; do hg bookmark --delete ${bm} ; done
> for bm in `cat b1`; do hg push -B ${bm} ; done
>
> Note that there's probably a way to do it in a single pass with
> multiple -B arguments, but I didn't.
>
> -Matt
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140313/80a5a7db/attachment.html>


More information about the yt-dev mailing list