Re: [PATCH] Handle branch names with slashes
- From
- Catalin Marinas <catalin.marinas@gmail.com>
- Date
- May 18, 2006, 12:11 UTC
- Message-ID
- <b0943d9e0605180511v5cf9256dx84825866b1691f51@mail.gmail.com>
- In-Reply-To
- <20060518065040.GA10497@backpacker.hemma.treskal.com>
On 18/05/06, Karl Hasselström <kha@treskal.com> wrote:
> Teach stgit to handle branch names with slashes in them; that is, > branches living in a subdirectory of .git/refs/heads.
[...]
> Catalin, I hope you're paying attention when trying to pick the > correct three patches out of the salvos I've sent you. :-)
Hopefully, I applied them correctly. I'll update the public repository tonight and you can check whether they are OK or not.
> --- a/stgit/commands/common.py > +++ b/stgit/commands/common.py
[...]
Show 7 quoted lines
> + if len(dirs) != 0: > + # We have branch names with / in them. > + branch_chars = r'[^@]' > + patch_id_mark = r'//' > + else: > + # No / in branch names. > + branch_chars = r'[^@%/]'
I removed % from the above regexp.
Thanks for the patches. Great work.
-- Catalin