In D25872#27180, @valerio.bozzolan wrote:P.S. Uh, I noticed that arc work also has a --start parameter! I documented a bit the expected behavior in the task T15993.
So that parameter is currently not supported for tasks, maybe relevant for the patch author:
$ arc work --start stable T15993 NEW BRANCH Creating new branch "T15993-support-for-arc-work-t12345-(workontask-workflow)" from "master". BRANCH Checking out branch "T15993-support-for-arc-work-t12345-(workontask-workflow)".So you see that from "master" that means we are not supporting --start, I guess.
If we cannot add support to that, we can add another cute TODO-exception for this corner case I guess (and create another task I guess)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mon, May 19
Mon, May 19
Sun, May 18
Sun, May 18
In D25872#27180, @valerio.bozzolan wrote:P.S. Uh, I noticed that arc work also has a --start parameter! I documented a bit the expected behavior in the task T15993.
So that parameter is currently not supported for tasks, maybe relevant for the patch author:
$ arc work --start stable T15993 NEW BRANCH Creating new branch "T15993-support-for-arc-work-t12345-(workontask-workflow)" from "master". BRANCH Checking out branch "T15993-support-for-arc-work-t12345-(workontask-workflow)".So you see that from "master" that means we are not supporting --start, I guess.
If we cannot add support to that, we can add another cute TODO-exception for this corner case I guess (and create another task I guess)
In D25872#27178, @valerio.bozzolan wrote:Tested for T15100 and T15993 and I'm a bit surprised to obtain, this very long branch with commas and square brackets (and just the closing bracket? uhm)
T15100-feature-request]-option-to-measure-wip-limits-based-on-card-count-instead-of-points,-to-more-closely-adhere-to-kanban-standardsand this with round brackets (that is not Bash friendly for the git autocomplete):
T15993-support-for-arc-work-t12345-(workontask-workflow)Probably here we should normalize a bit more these branch names. To do it, I see that Phorge already has a "normalize" method that does great things, but unfortunately it's not available in Arcanist (we cannot call it, or we create a circular dependency)...
https://we.phorge.it/source/phorge/browse/master/src/infrastructure/util/PhabricatorSlug.php
What do you think about? Should we import a very minimal "ArcanistSlug" class? And now/then having PhabricatorSlug extending that? (to give 100% backward compatibility but uniform code)
I'm a bit unsure. Thanks for opinions.
Apr 7 2025
Apr 7 2025
nib added a comment to Q173: Why do Milestones in parent project's Workboard seemingly randomly hide tasks?.
I patched this in our local repo with a change to /src/applications/project/engine/PhabricatorBoardLayoutEngine.php, in the layoutBoard() method. Around line 520, inside if ($proxy_hits) block, you have array_slice() taking the first element of $proxy_hits, which seems random.
Mar 17 2025
Mar 17 2025
In D25872#23862, @valerio.bozzolan wrote:In D25872#23861, @nib wrote:@aklapper Would it make sense to move the branch-naming lines into a function in class ArcanistGitWorkEngine, since it the branch-naming is git-specific? E.g.
public function buildBranchName($task_ref) { $task_name = $task_ref->getName(); // regex, preg_replace, trim, etc return $branch_name; }Probably yes so it's easier with Subversion and Mercurial in the future (?)
Probably something with "for task" in the name like buildBranchNameForTask($task_ref)
- Handle arc work for new and existing git branches
Handle arc work for new and existing git branches
Feb 20 2025
Feb 20 2025
@aklapper Would it make sense to move the branch-naming lines into a function in class ArcanistGitWorkEngine, since it the branch-naming is git-specific? E.g.
Hopefully the latest change will work for you. Now it checks existing git branches matching "T12345*" and if any exist, it will git checkout the first one, else it will create it from the task name.
So that should allow you to change the task title, and to use arc work T12345 as many times as you want without error.
- Fix indents, adds emoji support, improve REGEX
- Detect existing branch for task
- Handles existing branches
- Fixes indents, adds emoji support, improves REGEX
Fixes error when invoking arc work 2nd time on task id
Feb 18 2025
Feb 18 2025
- Fixes indents, adds emoji support, improves REGEX
Feb 13 2025
Feb 13 2025
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0