-
vifon
Hello. I've been getting familiar with Darcs recently and there is something I don't understand. The docs claim the dependency graph is being generated up to the latest non-dirty tag.
-
vifon
When I create a tag, I still can see the whole graph. What am I doing wrong?
-
vifon
BTW, is it normal that each patch depends also on the dependencies of its direct dependencies? The graph quickly gets messy because of this.
-
vifon
In both cases, I'm using `darcs show dependencies | dot -Tx11`.
-
tankf33der
vifon: its ok. you should not care of it
-
tankf33der
right? :)
-
vifon
Well, yes and no. It'd be pretty nice to visualize the dependencies in non-trivial repos. Especially when still getting familiar with Darcs.
-
vifon
With dependency chains of more than 3 patches, the graphs stop being planar, and then it only gets worse.
-
tankf33der
i just records changes. i am the most satisfied user.
-
Heffalump
vifon: did you tag and then record a new patch?
-
Heffalump
I suspect if you only have a tag at the head, then it doesn't just show you nothing
-
vifon
Yes, I tried recording a new patch afterwards.
-
vifon
-
vifon
Still the same thing.
-
Heffalump
I'll have a play later
-
vifon
Thanks.
-
Heffalump
So I just tried recording a couple of patches, then tagging. Before tagging, I see the two patches I recorded. After tagging, I just see the tag.
-
Heffalump
vifon: are you able to share your repo?
-
vifon
How did you know I was pushing it to my server this very minute?
-
Heffalump
didn't you know darcs has psychic powers?
-
vifon
Ah, of course.
-
Heffalump
darcs --make-them-gimme-the-repo
-
vifon
Do you want me to recreate the tag on my side? I've obliterated it already.
-
vifon
-
Heffalump
let me see what I get
-
Heffalump
so without any tagging of my own:
-
Heffalump
ganesh@Priory MINGW64 ~/temp/mpv-scripts
-
Heffalump
$ darcs show dependencies
-
Heffalump
digraph { graph [rankdir=LR]; node [imagescale=true]; 1 [label="TAG 1.0\n"]; 2 [label="test\n"];
-
Heffalump
}
-
Heffalump
what are you getting?
-
Heffalump
to be fair I am using a slightly old dev version of darcs, I'll need to update to 2.16.2 to be sure
-
vifon
-
vifon
Yeah, I'm on 2.16.2.
-
vifon
BTW, can you obliterate the tag and show me your graph then? Rendered, preferably. I'm wondering whether the graph edges are as intended at all.
-
Heffalump
I don't have dot installed on my Windows machine. But I think I must be running a different algorithm, because I see nodes numbered in numerical order whereas you are getting ones with patch hashes.
-
Heffalump
So I suspect something got broken recently.
-
vifon
Let me fetch the 2.14.5 then…
-
Heffalump
-
vifon
Well, that's *much* clearer!
-
Heffalump
I should go to bed, but I'll try to track down the culprit tomorrow.
-
vifon
Thanks a lot! Goodnight!
-
vifon
Heffalump: Curious. 2.14.5 fetches a GraphViz Haskell library.
vifon.einval.eu/upload/2020-10-14-1455cc.png
-
Heffalump
yeah, I think part of the reason for things changing was that dependency was getting painful because it wasn't updated
-
vifon
A quick unrelated question: how can I force `darcs log` to not invoke the pager and/or keep the colors?
-
vifon
Yeah, definitely something with 2.16, it's the same as yours on 2.14.