[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] new include/exclude commands?
From: |
Derek Scherger |
Subject: |
[Monotone-devel] new include/exclude commands? |
Date: |
Sat, 11 Oct 2008 19:28:31 -0600 |
I had an idea the other day, where I was continually having to provide a bunch of --exclude optons in a workspace with some (intentionally) missing files, that it might be useful to be able to specify a set of includes or excludes that persist across several commands. This would avoid the need to repeatedly specify the set of paths to include or exclude. It turns out to be very simple to implement and I have a the basics working so I thought I'd check and see if people would generally find this good, bad or ugly.
The basic idea is:
$ mtn include aaa bbb ccc
$ mtn exclude ddd eee fff
$ mtn status
Including:
aaa
bbb
ccc
Excluding:
ddd
eee
fff
Current branch: ...
Changes against parent ...
This is exactly equivalent to saying 'mtn status aaa bbb ccc --exclude ddd --exclude eee --exclude fff' with current monotone.
At the moment, saying 'mtn include' or 'mtn exclude' with no arguments clears the associated list of paths. Repeated 'mtn include' or 'mtn exclude' commands with paths simply append more paths to the include or exclude list. With a bit more work this could lead quite easily to the idea of a partial checkout, where lots of things are missing, but listed as excluded. Again, whether this is generally useful or not is probably debatable.
Comments?
Cheers,
Derek
- [Monotone-devel] new include/exclude commands?,
Derek Scherger <=
- Re: [Monotone-devel] new include/exclude commands?, Brian May, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Thomas Keller, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Derek Scherger, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Stephen Leake, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Thomas Keller, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Derek Scherger, 2008/10/12
- Re: [Monotone-devel] new include/exclude commands?, Hugo Cornelis, 2008/10/14
- Re: [Monotone-devel] new include/exclude commands?, Derek Scherger, 2008/10/14