Ejemplo n.º 1
0
        public void ListEntries_WalkEntries()
        {
            SvnSandBox sbox = new SvnSandBox(this);

            sbox.Create(SandBoxRepository.Default);

            string tmpDir = sbox.Wc;

            using (SvnWorkingCopyClient wcc = new SvnWorkingCopyClient())
            {
                SvnWorkingCopyEntriesArgs a = new SvnWorkingCopyEntriesArgs();
                a.RetrieveHidden = true;
                //a.Depth = SvnDepth.Infinity;

                bool touched = false;
                Assert.That(wcc.ListEntries(tmpDir, a,
                                            delegate(object sender, SvnWorkingCopyEntryEventArgs e)
                {
                    touched = true;
                }), Is.True);


                Assert.That(touched);
            }
        }
Ejemplo n.º 2
0
        public void ListEntries_WalkEntries()
        {
            SvnSandBox sbox = new SvnSandBox(this);
            sbox.Create(SandBoxRepository.Default);

            string tmpDir = sbox.Wc;

            using (SvnWorkingCopyClient wcc = new SvnWorkingCopyClient())
            {
                SvnWorkingCopyEntriesArgs a = new SvnWorkingCopyEntriesArgs();
                a.RetrieveHidden = true;
                //a.Depth = SvnDepth.Infinity;

                bool touched = false;
                Assert.That(wcc.ListEntries(tmpDir, a,
                    delegate(object sender, SvnWorkingCopyEntryEventArgs e)
                    {
                        touched = true;
                    }), Is.True);

                Assert.That(touched);
            }
        }
Ejemplo n.º 3
0
        static string GetSvnCasing(SvnItem item)
        {
            string name = null;

            // Find the correct casing
            using (SvnWorkingCopyClient wcc = new SvnWorkingCopyClient())
            {
                SvnWorkingCopyEntriesArgs ea = new SvnWorkingCopyEntriesArgs();
                ea.ThrowOnCancel = false;
                ea.ThrowOnError  = false;

                wcc.ListEntries(item.Directory, ea,
                                delegate(object sender, SvnWorkingCopyEntryEventArgs e)
                {
                    if (string.Equals(e.FullPath, item.FullPath, StringComparison.OrdinalIgnoreCase))
                    {
                        name = e.FullPath;
                    }
                });
            }

            return(name);
        }
Ejemplo n.º 4
0
        static string GetSvnCasing(SvnItem item)
        {
            string name = null;
            // Find the correct casing
            using (SvnWorkingCopyClient wcc = new SvnWorkingCopyClient())
            {
                SvnWorkingCopyEntriesArgs ea = new SvnWorkingCopyEntriesArgs();
                ea.ThrowOnCancel = false;
                ea.ThrowOnError = false;

                wcc.ListEntries(item.Directory, ea,
                    delegate(object sender, SvnWorkingCopyEntryEventArgs e)
                    {
                        if (string.Equals(e.FullPath, item.FullPath, StringComparison.OrdinalIgnoreCase))
                        {
                            name = e.FullPath;
                        }
                    });
            }

            return name;
        }