Example #1
0
        private void OnChangedDirs(object sender, ReposHookEventArgs e)
        {
            using (SvnLookClient lc = new SvnLookClient())
            {
                SvnChangedArgs ca = new SvnChangedArgs();
                ca.Transaction = e.HookArgs.TransactionName;

                Collection <SvnChangedEventArgs> list;
                Assert.That(lc.GetChanged(e.HookArgs.LookOrigin, ca, out list));

                Assert.That(list.Count, Is.EqualTo(16));
                Assert.That(list[0].Name, Is.EqualTo("a"));
                Assert.That(list[0].Path, Is.EqualTo("/a/"));
                Assert.That(list[1].Name, Is.EqualTo("b"));
                Assert.That(list[1].Path, Is.EqualTo("/a/b/"));
                Assert.That(list[2].Name, Is.EqualTo("c"));
                Assert.That(list[2].Path, Is.EqualTo("/a/b/c/"));
            }
        }
Example #2
0
        private void OnCopyDir(object sender, ReposHookEventArgs e)
        {
            using (SvnLookClient lc = new SvnLookClient())
            {
                SvnChangedArgs ca = new SvnChangedArgs();
                ca.Transaction = e.HookArgs.TransactionName;

                Collection <SvnChangedEventArgs> list;
                Assert.That(lc.GetChanged(e.HookArgs.LookOrigin, ca, out list));
                Assert.That(list.Count, Is.EqualTo(2));

                Assert.That(list[0].Name, Is.EqualTo("d"));
                Assert.That(list[0].Path, Is.EqualTo("/d/"));
                Assert.That(list[0].CopyFromPath, Is.EqualTo("/a/b/c/d"));
                Assert.That(list[0].CopyFromRevision, Is.EqualTo(1L));
                Assert.That(list[1].Name, Is.EqualTo("j"));
                Assert.That(list[1].Path, Is.EqualTo("/j/"));
                Assert.That(list[1].CopyFromPath, Is.EqualTo("/i/j"));
                Assert.That(list[1].CopyFromRevision, Is.EqualTo(1L));
            }
        }
Example #3
0
        private void OnCopyDir(object sender, ReposHookEventArgs e)
        {
            using (SvnLookClient lc = new SvnLookClient())
            {
                SvnChangedArgs ca = new SvnChangedArgs();
                ca.Transaction = e.HookArgs.TransactionName;

                Collection<SvnChangedEventArgs> list;
                Assert.That(lc.GetChanged(e.HookArgs.LookOrigin, ca, out list));
                Assert.That(list.Count, Is.EqualTo(2));

                Assert.That(list[0].Name, Is.EqualTo("d"));
                Assert.That(list[0].Path, Is.EqualTo("/d/"));
                Assert.That(list[0].CopyFromPath, Is.EqualTo("/a/b/c/d"));
                Assert.That(list[0].CopyFromRevision, Is.EqualTo(1L));
                Assert.That(list[1].Name, Is.EqualTo("j"));
                Assert.That(list[1].Path, Is.EqualTo("/j/"));
                Assert.That(list[1].CopyFromPath, Is.EqualTo("/i/j"));
                Assert.That(list[1].CopyFromRevision, Is.EqualTo(1L));
            }
        }
Example #4
0
        private void OnChangedDirs(object sender, ReposHookEventArgs e)
        {
            using (SvnLookClient lc = new SvnLookClient())
            {
                SvnChangedArgs ca = new SvnChangedArgs();
                ca.Transaction = e.HookArgs.TransactionName;

                Collection<SvnChangedEventArgs> list;
                Assert.That(lc.GetChanged(e.HookArgs.LookOrigin, ca, out list));

                Assert.That(list.Count, Is.EqualTo(16));
                Assert.That(list[0].Name, Is.EqualTo("a"));
                Assert.That(list[0].Path, Is.EqualTo("/a/"));
                Assert.That(list[1].Name, Is.EqualTo("b"));
                Assert.That(list[1].Path, Is.EqualTo("/a/b/"));
                Assert.That(list[2].Name, Is.EqualTo("c"));
                Assert.That(list[2].Path, Is.EqualTo("/a/b/c/"));
            }
        }